Package org.adempiere.base
Interface IProductPricing
- All Known Implementing Classes:
AbstractProductPricing,MProductPricing
public interface IProductPricing
Interface for Product Price Calculations
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCalculate PriceintGet Price List CurrencyintGet C_UOM_IDCalculate Discount PercentageintintGet Price DateGet Price LimitGet Price ListGet Price StdbooleanIs the Price Calculated (i.e. found)?booleanIs a DiscountSchema active?booleanIs Price List enforced?voidsetInitialValues(int M_Product_ID, int C_BPartner_ID, BigDecimal qty, boolean isSOTrx, String trxName) Set the initial values that the old MProductPricing uses for backward compatibilityvoidsetInvoiceLine(I_C_InvoiceLine invoiceLine, String trxName) Set invoice line and calculate the parameters from itvoidsetM_PriceList_ID(int M_PriceList_ID) voidsetM_PriceList_Version_ID(int M_PriceList_Version_ID) voidsetOrderLine(I_C_OrderLine orderLine, String trxName) Set order line and calculate the parameters from itvoidsetPriceDate(Timestamp priceDate) Set Price DatevoidsetProjectLine(I_C_ProjectLine projectLine, String trxName) Set project line and calculate the parameters from itvoidsetQty(BigDecimal qty) voidsetRequisitionLine(I_M_RequisitionLine reqLine, String trxName) Set requisition line and calculate the parameters from itvoidsetRMALine(I_M_RMALine rmaLine, String trxName) Set rma line and calculate the parameters from it
-
Method Details
-
setInitialValues
void setInitialValues(int M_Product_ID, int C_BPartner_ID, BigDecimal qty, boolean isSOTrx, String trxName) Set the initial values that the old MProductPricing uses for backward compatibility- Parameters:
M_Product_ID-C_BPartner_ID-qty-isSOTrx-trxName-
-
calculatePrice
boolean calculatePrice()Calculate Price- Returns:
- true if calculated
-
getDiscount
BigDecimal getDiscount()Calculate Discount Percentage- Returns:
- Discount
-
getM_Product_ID
int getM_Product_ID() -
getM_PriceList_ID
int getM_PriceList_ID() -
setM_PriceList_ID
void setM_PriceList_ID(int M_PriceList_ID) -
setM_PriceList_Version_ID
void setM_PriceList_Version_ID(int M_PriceList_Version_ID) -
setQty
-
getPriceDate
Timestamp getPriceDate()Get Price Date- Returns:
- date
-
setPriceDate
Set Price Date- Parameters:
priceDate- date
-
getC_UOM_ID
int getC_UOM_ID()Get C_UOM_ID- Returns:
- uom
-
getPriceList
BigDecimal getPriceList()Get Price List- Returns:
- list
-
getPriceStd
BigDecimal getPriceStd()Get Price Std- Returns:
- std
-
getPriceLimit
BigDecimal getPriceLimit()Get Price Limit- Returns:
- limit
-
getC_Currency_ID
int getC_Currency_ID()Get Price List Currency- Returns:
- currency
-
isEnforcePriceLimit
boolean isEnforcePriceLimit()Is Price List enforced?- Returns:
- enforce limit
-
isDiscountSchema
boolean isDiscountSchema()Is a DiscountSchema active?- Returns:
- active Discount Schema
-
isCalculated
boolean isCalculated()Is the Price Calculated (i.e. found)?- Returns:
- calculated
-
setOrderLine
Set order line and calculate the parameters from it- Parameters:
orderLine-trxName-
-
setInvoiceLine
Set invoice line and calculate the parameters from it- Parameters:
invoiceLine-trxName-
-
setProjectLine
Set project line and calculate the parameters from it- Parameters:
projectLine-trxName-
-
setRequisitionLine
Set requisition line and calculate the parameters from it- Parameters:
reqLine-trxName-
-
setRMALine
Set rma line and calculate the parameters from it- Parameters:
rmaLine-trxName-
-