Package org.adempiere.base
Interface IProductPricing
- All Known Implementing Classes:
AbstractProductPricing
,MProductPricing
public interface IProductPricing
Interface for Product Price Calculations
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Calculate Priceint
Get Price List Currencyint
Get C_UOM_IDCalculate Discount Percentageint
int
Get Price DateGet Price LimitGet Price ListGet Price Stdboolean
Is the Price Calculated (i.e. found)?boolean
Is a DiscountSchema active?boolean
Is Price List enforced?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 compatibilityvoid
setInvoiceLine
(I_C_InvoiceLine invoiceLine, String trxName) Set invoice line and calculate the parameters from itvoid
setM_PriceList_ID
(int M_PriceList_ID) void
setM_PriceList_Version_ID
(int M_PriceList_Version_ID) void
setOrderLine
(I_C_OrderLine orderLine, String trxName) Set order line and calculate the parameters from itvoid
setPriceDate
(Timestamp priceDate) Set Price Datevoid
setProjectLine
(I_C_ProjectLine projectLine, String trxName) Set project line and calculate the parameters from itvoid
setQty
(BigDecimal qty) void
setRequisitionLine
(I_M_RequisitionLine reqLine, String trxName) Set requisition line and calculate the parameters from itvoid
setRMALine
(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
-
-