Package org.adempiere.base
Class AbstractProductPricing
java.lang.Object
org.adempiere.base.AbstractProductPricing
- All Implemented Interfaces:
IProductPricing
- Direct Known Subclasses:
MProductPricing
Abstract base class for
IProductPricing implementation-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected intprotected intprotected intprotected Timestampprotected BigDecimalprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintGet Price DatevoidsetInitialValues(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 itMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.adempiere.base.IProductPricing
calculatePrice, getC_Currency_ID, getC_UOM_ID, getDiscount, getPriceLimit, getPriceList, getPriceStd, isCalculated, isDiscountSchema, isEnforcePriceLimit
-
Field Details
-
m_M_Product_ID
protected int m_M_Product_ID -
m_C_BPartner_ID
protected int m_C_BPartner_ID -
m_Qty
-
m_isSOTrx
protected boolean m_isSOTrx -
trxName
-
m_M_PriceList_Version_ID
protected int m_M_PriceList_Version_ID -
m_M_PriceList_ID
protected int m_M_PriceList_ID -
m_PriceDate
-
-
Constructor Details
-
AbstractProductPricing
public AbstractProductPricing()
-
-
Method Details
-
setInitialValues
public void setInitialValues(int M_Product_ID, int C_BPartner_ID, BigDecimal qty, boolean isSOTrx, String trxName) Description copied from interface:IProductPricingSet the initial values that the old MProductPricing uses for backward compatibility- Specified by:
setInitialValuesin interfaceIProductPricing
-
getM_Product_ID
public int getM_Product_ID()- Specified by:
getM_Product_IDin interfaceIProductPricing
-
getM_PriceList_ID
public int getM_PriceList_ID()- Specified by:
getM_PriceList_IDin interfaceIProductPricing
-
setM_PriceList_ID
public void setM_PriceList_ID(int M_PriceList_ID) - Specified by:
setM_PriceList_IDin interfaceIProductPricing
-
setM_PriceList_Version_ID
public void setM_PriceList_Version_ID(int M_PriceList_Version_ID) - Specified by:
setM_PriceList_Version_IDin interfaceIProductPricing
-
setQty
- Specified by:
setQtyin interfaceIProductPricing
-
getPriceDate
Description copied from interface:IProductPricingGet Price Date- Specified by:
getPriceDatein interfaceIProductPricing- Returns:
- date
-
setPriceDate
Description copied from interface:IProductPricingSet Price Date- Specified by:
setPriceDatein interfaceIProductPricing- Parameters:
priceDate- date
-
setOrderLine
Description copied from interface:IProductPricingSet order line and calculate the parameters from it- Specified by:
setOrderLinein interfaceIProductPricing
-
setInvoiceLine
Description copied from interface:IProductPricingSet invoice line and calculate the parameters from it- Specified by:
setInvoiceLinein interfaceIProductPricing
-
setProjectLine
Description copied from interface:IProductPricingSet project line and calculate the parameters from it- Specified by:
setProjectLinein interfaceIProductPricing
-
setRequisitionLine
Description copied from interface:IProductPricingSet requisition line and calculate the parameters from it- Specified by:
setRequisitionLinein interfaceIProductPricing
-
setRMALine
Description copied from interface:IProductPricingSet rma line and calculate the parameters from it- Specified by:
setRMALinein interfaceIProductPricing
-