Package org.adempiere.base
Class AbstractProductPricing
- java.lang.Object
-
- org.adempiere.base.AbstractProductPricing
-
- All Implemented Interfaces:
IProductPricing
- Direct Known Subclasses:
MProductPricing
public abstract class AbstractProductPricing extends Object implements IProductPricing
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_C_BPartner_IDprotected booleanm_isSOTrxprotected intm_M_PriceList_IDprotected intm_M_PriceList_Version_IDprotected intm_M_Product_IDprotected Timestampm_PriceDateprotected BigDecimalm_Qtyprotected StringtrxName
-
Constructor Summary
Constructors Constructor Description AbstractProductPricing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetM_PriceList_ID()intgetM_Product_ID()TimestampgetPriceDate()Get 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 it-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.base.IProductPricing
calculatePrice, getC_Currency_ID, getC_UOM_ID, getDiscount, getPriceLimit, getPriceList, getPriceStd, isCalculated, isDiscountSchema, isEnforcePriceLimit
-
-
-
-
Field Detail
-
m_M_Product_ID
protected int m_M_Product_ID
-
m_C_BPartner_ID
protected int m_C_BPartner_ID
-
m_Qty
protected BigDecimal m_Qty
-
m_isSOTrx
protected boolean m_isSOTrx
-
trxName
protected String 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
protected Timestamp m_PriceDate
-
-
Method Detail
-
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
public void setQty(BigDecimal qty)
- Specified by:
setQtyin interfaceIProductPricing
-
getPriceDate
public Timestamp getPriceDate()
Description copied from interface:IProductPricingGet Price Date- Specified by:
getPriceDatein interfaceIProductPricing- Returns:
- date
-
setPriceDate
public void setPriceDate(Timestamp priceDate)
Description copied from interface:IProductPricingSet Price Date- Specified by:
setPriceDatein interfaceIProductPricing- Parameters:
priceDate- date
-
setOrderLine
public void setOrderLine(I_C_OrderLine orderLine, String trxName)
Description copied from interface:IProductPricingSet order line and calculate the parameters from it- Specified by:
setOrderLinein interfaceIProductPricing
-
setInvoiceLine
public void setInvoiceLine(I_C_InvoiceLine invoiceLine, String trxName)
Description copied from interface:IProductPricingSet invoice line and calculate the parameters from it- Specified by:
setInvoiceLinein interfaceIProductPricing
-
setProjectLine
public void setProjectLine(I_C_ProjectLine projectLine, String trxName)
Description copied from interface:IProductPricingSet project line and calculate the parameters from it- Specified by:
setProjectLinein interfaceIProductPricing
-
setRequisitionLine
public void setRequisitionLine(I_M_RequisitionLine reqLine, String trxName)
Description copied from interface:IProductPricingSet requisition line and calculate the parameters from it- Specified by:
setRequisitionLinein interfaceIProductPricing
-
setRMALine
public void setRMALine(I_M_RMALine rmaLine, String trxName)
Description copied from interface:IProductPricingSet rma line and calculate the parameters from it- Specified by:
setRMALinein interfaceIProductPricing
-
-