📄 x_m_discountschemaline.java
字号:
/** Get List price Discount %.
Discount from list price as a percentage */
public BigDecimal getList_Discount()
{
BigDecimal bd = (BigDecimal)get_Value("List_Discount");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Fixed List Price.
Fixes List Price (not calculated) */
public void setList_Fixed (BigDecimal List_Fixed)
{
set_Value ("List_Fixed", List_Fixed);
}
/** Get Fixed List Price.
Fixes List Price (not calculated) */
public BigDecimal getList_Fixed()
{
BigDecimal bd = (BigDecimal)get_Value("List_Fixed");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set List price max Margin.
Maximum margin for a product */
public void setList_MaxAmt (BigDecimal List_MaxAmt)
{
if (List_MaxAmt == null) throw new IllegalArgumentException ("List_MaxAmt is mandatory.");
set_Value ("List_MaxAmt", List_MaxAmt);
}
/** Get List price max Margin.
Maximum margin for a product */
public BigDecimal getList_MaxAmt()
{
BigDecimal bd = (BigDecimal)get_Value("List_MaxAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set List price min Margin.
Minimum margin for a product */
public void setList_MinAmt (BigDecimal List_MinAmt)
{
if (List_MinAmt == null) throw new IllegalArgumentException ("List_MinAmt is mandatory.");
set_Value ("List_MinAmt", List_MinAmt);
}
/** Get List price min Margin.
Minimum margin for a product */
public BigDecimal getList_MinAmt()
{
BigDecimal bd = (BigDecimal)get_Value("List_MinAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** List_Rounding AD_Reference_ID=155 */
public static final int LIST_ROUNDING_AD_Reference_ID=155;
/** Whole Number .00 = 0 */
public static final String LIST_ROUNDING_WholeNumber00 = "0";
/** Nickel .05, .10, .15, ... = 5 */
public static final String LIST_ROUNDING_Nickel051015 = "5";
/** Currency Precision = C */
public static final String LIST_ROUNDING_CurrencyPrecision = "C";
/** Dime .10, .20, .30, ... = D */
public static final String LIST_ROUNDING_Dime102030 = "D";
/** No Rounding = N */
public static final String LIST_ROUNDING_NoRounding = "N";
/** Quarter .25 .50 .75 = Q */
public static final String LIST_ROUNDING_Quarter255075 = "Q";
/** Ten 10.00, 20.00, .. = T */
public static final String LIST_ROUNDING_Ten10002000 = "T";
/** Set List price Rounding.
Rounding rule for final list price */
public void setList_Rounding (String List_Rounding)
{
if (List_Rounding == null) throw new IllegalArgumentException ("List_Rounding is mandatory");
if (List_Rounding.equals("0") || List_Rounding.equals("5") || List_Rounding.equals("C") || List_Rounding.equals("D") || List_Rounding.equals("N") || List_Rounding.equals("Q") || List_Rounding.equals("T"));
else throw new IllegalArgumentException ("List_Rounding Invalid value - " + List_Rounding + " - Reference_ID=155 - 0 - 5 - C - D - N - Q - T");
if (List_Rounding.length() > 1)
{
log.warning("Length > 1 - truncated");
List_Rounding = List_Rounding.substring(0,0);
}
set_Value ("List_Rounding", List_Rounding);
}
/** Get List price Rounding.
Rounding rule for final list price */
public String getList_Rounding()
{
return (String)get_Value("List_Rounding");
}
/** Set Discount Pricelist.
Line of the pricelist trade discount schema */
public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID)
{
if (M_DiscountSchemaLine_ID < 1) throw new IllegalArgumentException ("M_DiscountSchemaLine_ID is mandatory.");
set_ValueNoCheck ("M_DiscountSchemaLine_ID", new Integer(M_DiscountSchemaLine_ID));
}
/** Get Discount Pricelist.
Line of the pricelist trade discount schema */
public int getM_DiscountSchemaLine_ID()
{
Integer ii = (Integer)get_Value("M_DiscountSchemaLine_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Discount Schema.
Schema to calculate the trade discount percentage */
public void setM_DiscountSchema_ID (int M_DiscountSchema_ID)
{
if (M_DiscountSchema_ID < 1) throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory.");
set_ValueNoCheck ("M_DiscountSchema_ID", new Integer(M_DiscountSchema_ID));
}
/** Get Discount Schema.
Schema to calculate the trade discount percentage */
public int getM_DiscountSchema_ID()
{
Integer ii = (Integer)get_Value("M_DiscountSchema_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Product Category.
Category of a Product */
public void setM_Product_Category_ID (int M_Product_Category_ID)
{
if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null);
else
set_Value ("M_Product_Category_ID", new Integer(M_Product_Category_ID));
}
/** Get Product Category.
Category of a Product */
public int getM_Product_Category_ID()
{
Integer ii = (Integer)get_Value("M_Product_Category_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Product.
Product, Service, Item */
public void setM_Product_ID (int M_Product_ID)
{
if (M_Product_ID <= 0) set_Value ("M_Product_ID", null);
else
set_Value ("M_Product_ID", new Integer(M_Product_ID));
}
/** Get Product.
Product, Service, Item */
public int getM_Product_ID()
{
Integer ii = (Integer)get_Value("M_Product_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Sequence.
Method of ordering records;
lowest number comes first */
public void setSeqNo (int SeqNo)
{
set_Value ("SeqNo", new Integer(SeqNo));
}
/** Get Sequence.
Method of ordering records;
lowest number comes first */
public int getSeqNo()
{
Integer ii = (Integer)get_Value("SeqNo");
if (ii == null) return 0;
return ii.intValue();
}
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getSeqNo()));
}
/** Set Standard price Surcharge Amount.
Amount added to a price as a surcharge */
public void setStd_AddAmt (BigDecimal Std_AddAmt)
{
if (Std_AddAmt == null) throw new IllegalArgumentException ("Std_AddAmt is mandatory.");
set_Value ("Std_AddAmt", Std_AddAmt);
}
/** Get Standard price Surcharge Amount.
Amount added to a price as a surcharge */
public BigDecimal getStd_AddAmt()
{
BigDecimal bd = (BigDecimal)get_Value("Std_AddAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** Std_Base AD_Reference_ID=194 */
public static final int STD_BASE_AD_Reference_ID=194;
/** Fixed Price = F */
public static final String STD_BASE_FixedPrice = "F";
/** List Price = L */
public static final String STD_BASE_ListPrice = "L";
/** Standard Price = S */
public static final String STD_BASE_StandardPrice = "S";
/** Limit (PO) Price = X */
public static final String STD_BASE_LimitPOPrice = "X";
/** Set Standard price Base.
Base price for calculating new standard price */
public void setStd_Base (String Std_Base)
{
if (Std_Base == null) throw new IllegalArgumentException ("Std_Base is mandatory");
if (Std_Base.equals("F") || Std_Base.equals("L") || Std_Base.equals("S") || Std_Base.equals("X"));
else throw new IllegalArgumentException ("Std_Base Invalid value - " + Std_Base + " - Reference_ID=194 - F - L - S - X");
if (Std_Base.length() > 1)
{
log.warning("Length > 1 - truncated");
Std_Base = Std_Base.substring(0,0);
}
set_Value ("Std_Base", Std_Base);
}
/** Get Standard price Base.
Base price for calculating new standard price */
public String getStd_Base()
{
return (String)get_Value("Std_Base");
}
/** Set Standard price Discount %.
Discount percentage to subtract from base price */
public void setStd_Discount (BigDecimal Std_Discount)
{
if (Std_Discount == null) throw new IllegalArgumentException ("Std_Discount is mandatory.");
set_Value ("Std_Discount", Std_Discount);
}
/** Get Standard price Discount %.
Discount percentage to subtract from base price */
public BigDecimal getStd_Discount()
{
BigDecimal bd = (BigDecimal)get_Value("Std_Discount");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Fixed Standard Price.
Fixed Standard Price (not calculated) */
public void setStd_Fixed (BigDecimal Std_Fixed)
{
set_Value ("Std_Fixed", Std_Fixed);
}
/** Get Fixed Standard Price.
Fixed Standard Price (not calculated) */
public BigDecimal getStd_Fixed()
{
BigDecimal bd = (BigDecimal)get_Value("Std_Fixed");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Standard max Margin.
Maximum margin allowed for a product */
public void setStd_MaxAmt (BigDecimal Std_MaxAmt)
{
if (Std_MaxAmt == null) throw new IllegalArgumentException ("Std_MaxAmt is mandatory.");
set_Value ("Std_MaxAmt", Std_MaxAmt);
}
/** Get Standard max Margin.
Maximum margin allowed for a product */
public BigDecimal getStd_MaxAmt()
{
BigDecimal bd = (BigDecimal)get_Value("Std_MaxAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Standard price min Margin.
Minimum margin allowed for a product */
public void setStd_MinAmt (BigDecimal Std_MinAmt)
{
if (Std_MinAmt == null) throw new IllegalArgumentException ("Std_MinAmt is mandatory.");
set_Value ("Std_MinAmt", Std_MinAmt);
}
/** Get Standard price min Margin.
Minimum margin allowed for a product */
public BigDecimal getStd_MinAmt()
{
BigDecimal bd = (BigDecimal)get_Value("Std_MinAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** Std_Rounding AD_Reference_ID=155 */
public static final int STD_ROUNDING_AD_Reference_ID=155;
/** Whole Number .00 = 0 */
public static final String STD_ROUNDING_WholeNumber00 = "0";
/** Nickel .05, .10, .15, ... = 5 */
public static final String STD_ROUNDING_Nickel051015 = "5";
/** Currency Precision = C */
public static final String STD_ROUNDING_CurrencyPrecision = "C";
/** Dime .10, .20, .30, ... = D */
public static final String STD_ROUNDING_Dime102030 = "D";
/** No Rounding = N */
public static final String STD_ROUNDING_NoRounding = "N";
/** Quarter .25 .50 .75 = Q */
public static final String STD_ROUNDING_Quarter255075 = "Q";
/** Ten 10.00, 20.00, .. = T */
public static final String STD_ROUNDING_Ten10002000 = "T";
/** Set Standard price Rounding.
Rounding rule for calculated price */
public void setStd_Rounding (String Std_Rounding)
{
if (Std_Rounding == null) throw new IllegalArgumentException ("Std_Rounding is mandatory");
if (Std_Rounding.equals("0") || Std_Rounding.equals("5") || Std_Rounding.equals("C") || Std_Rounding.equals("D") || Std_Rounding.equals("N") || Std_Rounding.equals("Q") || Std_Rounding.equals("T"));
else throw new IllegalArgumentException ("Std_Rounding Invalid value - " + Std_Rounding + " - Reference_ID=155 - 0 - 5 - C - D - N - Q - T");
if (Std_Rounding.length() > 1)
{
log.warning("Length > 1 - truncated");
Std_Rounding = Std_Rounding.substring(0,0);
}
set_Value ("Std_Rounding", Std_Rounding);
}
/** Get Standard price Rounding.
Rounding rule for calculated price */
public String getStd_Rounding()
{
return (String)get_Value("Std_Rounding");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -