Package org.adempiere.base
Interface IProductPricing
-
- All Known Implementing Classes:
AbstractProductPricing
,MProductPricing
public interface IProductPricing
Product Price Calculations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
calculatePrice()
Calculate Priceint
getC_Currency_ID()
Get Price List Currencyint
getC_UOM_ID()
Get C_UOM_IDBigDecimal
getDiscount()
Calculate Discount Percentageint
getM_PriceList_ID()
int
getM_Product_ID()
Timestamp
getPriceDate()
Get Price DateBigDecimal
getPriceLimit()
Get Price LimitBigDecimal
getPriceList()
Get Price ListBigDecimal
getPriceStd()
Get Price Stdboolean
isCalculated()
Is the Price Calculated (i.e. found)?boolean
isDiscountSchema()
Is a DiscountSchema active?boolean
isEnforcePriceLimit()
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 Detail
-
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
void setQty(BigDecimal qty)
-
getPriceDate
Timestamp getPriceDate()
Get Price Date- Returns:
- date
-
setPriceDate
void setPriceDate(Timestamp priceDate)
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
void setOrderLine(I_C_OrderLine orderLine, String trxName)
Set order line and calculate the parameters from it- Parameters:
orderLine
-trxName
-
-
setInvoiceLine
void setInvoiceLine(I_C_InvoiceLine invoiceLine, String trxName)
Set invoice line and calculate the parameters from it- Parameters:
invoiceLine
-trxName
-
-
setProjectLine
void setProjectLine(I_C_ProjectLine projectLine, String trxName)
Set project line and calculate the parameters from it- Parameters:
projectLine
-trxName
-
-
setRequisitionLine
void setRequisitionLine(I_M_RequisitionLine reqLine, String trxName)
Set requisition line and calculate the parameters from it- Parameters:
reqLine
-trxName
-
-
setRMALine
void setRMALine(I_M_RMALine rmaLine, String trxName)
Set rma line and calculate the parameters from it- Parameters:
rmaLine
-trxName
-
-
-