Package org.adempiere.base
Interface IProductPricing
-
- All Known Implementing Classes:
AbstractProductPricing,MProductPricing
public interface IProductPricingProduct Price Calculations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancalculatePrice()Calculate PriceintgetC_Currency_ID()Get Price List CurrencyintgetC_UOM_ID()Get C_UOM_IDBigDecimalgetDiscount()Calculate Discount PercentageintgetM_PriceList_ID()intgetM_Product_ID()TimestampgetPriceDate()Get Price DateBigDecimalgetPriceLimit()Get Price LimitBigDecimalgetPriceList()Get Price ListBigDecimalgetPriceStd()Get Price StdbooleanisCalculated()Is the Price Calculated (i.e. found)?booleanisDiscountSchema()Is a DiscountSchema active?booleanisEnforcePriceLimit()Is 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 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-
-
-