|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_M_DiscountSchema
org.compiere.model.MDiscountSchema
public class MDiscountSchema
Discount Schema Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_DiscountSchema |
|---|
accessLevel, CUMULATIVELEVEL_AD_Reference_ID, CUMULATIVELEVEL_Line, DISCOUNTTYPE_AD_Reference_ID, DISCOUNTTYPE_Breaks, DISCOUNTTYPE_FlatPercent, DISCOUNTTYPE_Formula, DISCOUNTTYPE_Pricelist, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MDiscountSchema(Ctx ctx,
int M_DiscountSchema_ID,
String trxName)
Standard Constructor |
|
MDiscountSchema(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
BigDecimal |
calculateDiscount(BigDecimal Qty,
BigDecimal Price,
int M_Product_ID,
int M_Product_Category_ID,
BigDecimal BPartnerFlatDiscount)
Calculate Discount Percentage |
BigDecimal |
calculatePrice(BigDecimal Qty,
BigDecimal Price,
int M_Product_ID,
int M_Product_Category_ID,
BigDecimal BPartnerFlatDiscount)
Calculate Discounted Price |
static MDiscountSchema |
get(Ctx ctx,
int M_DiscountSchema_ID)
Get Discount Schema from Cache |
MDiscountSchemaBreak[] |
getBreaks(boolean reload)
Get Breaks |
MDiscountSchemaLine[] |
getLines(boolean reload)
Get Lines |
int |
reSeq()
Renumber |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MDiscountSchema(Ctx ctx,
int M_DiscountSchema_ID,
String trxName)
ctx - contextM_DiscountSchema_ID - idtrxName - transaction
public MDiscountSchema(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MDiscountSchema get(Ctx ctx,
int M_DiscountSchema_ID)
ctx - contextM_DiscountSchema_ID - id
public MDiscountSchemaBreak[] getBreaks(boolean reload)
reload - reload
public MDiscountSchemaLine[] getLines(boolean reload)
reload - reload
public BigDecimal calculatePrice(BigDecimal Qty,
BigDecimal Price,
int M_Product_ID,
int M_Product_Category_ID,
BigDecimal BPartnerFlatDiscount)
Qty - quantityPrice - priceM_Product_ID - productM_Product_Category_ID - categoryBPartnerFlatDiscount - flat discount
public BigDecimal calculateDiscount(BigDecimal Qty,
BigDecimal Price,
int M_Product_ID,
int M_Product_Category_ID,
BigDecimal BPartnerFlatDiscount)
Qty - quantityPrice - priceM_Product_ID - productM_Product_Category_ID - categoryBPartnerFlatDiscount - flat discount
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
public int reSeq()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||