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 int
m_C_BPartner_ID
protected boolean
m_isSOTrx
protected int
m_M_PriceList_ID
protected int
m_M_PriceList_Version_ID
protected int
m_M_Product_ID
protected Timestamp
m_PriceDate
protected BigDecimal
m_Qty
protected String
trxName
-
Constructor Summary
Constructors Constructor Description AbstractProductPricing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getM_PriceList_ID()
int
getM_Product_ID()
Timestamp
getPriceDate()
Get Price Datevoid
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-
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:IProductPricing
Set the initial values that the old MProductPricing uses for backward compatibility- Specified by:
setInitialValues
in interfaceIProductPricing
-
getM_Product_ID
public int getM_Product_ID()
- Specified by:
getM_Product_ID
in interfaceIProductPricing
-
getM_PriceList_ID
public int getM_PriceList_ID()
- Specified by:
getM_PriceList_ID
in interfaceIProductPricing
-
setM_PriceList_ID
public void setM_PriceList_ID(int M_PriceList_ID)
- Specified by:
setM_PriceList_ID
in interfaceIProductPricing
-
setM_PriceList_Version_ID
public void setM_PriceList_Version_ID(int M_PriceList_Version_ID)
- Specified by:
setM_PriceList_Version_ID
in interfaceIProductPricing
-
setQty
public void setQty(BigDecimal qty)
- Specified by:
setQty
in interfaceIProductPricing
-
getPriceDate
public Timestamp getPriceDate()
Description copied from interface:IProductPricing
Get Price Date- Specified by:
getPriceDate
in interfaceIProductPricing
- Returns:
- date
-
setPriceDate
public void setPriceDate(Timestamp priceDate)
Description copied from interface:IProductPricing
Set Price Date- Specified by:
setPriceDate
in interfaceIProductPricing
- Parameters:
priceDate
- date
-
setOrderLine
public void setOrderLine(I_C_OrderLine orderLine, String trxName)
Description copied from interface:IProductPricing
Set order line and calculate the parameters from it- Specified by:
setOrderLine
in interfaceIProductPricing
-
setInvoiceLine
public void setInvoiceLine(I_C_InvoiceLine invoiceLine, String trxName)
Description copied from interface:IProductPricing
Set invoice line and calculate the parameters from it- Specified by:
setInvoiceLine
in interfaceIProductPricing
-
setProjectLine
public void setProjectLine(I_C_ProjectLine projectLine, String trxName)
Description copied from interface:IProductPricing
Set project line and calculate the parameters from it- Specified by:
setProjectLine
in interfaceIProductPricing
-
setRequisitionLine
public void setRequisitionLine(I_M_RequisitionLine reqLine, String trxName)
Description copied from interface:IProductPricing
Set requisition line and calculate the parameters from it- Specified by:
setRequisitionLine
in interfaceIProductPricing
-
setRMALine
public void setRMALine(I_M_RMALine rmaLine, String trxName)
Description copied from interface:IProductPricing
Set rma line and calculate the parameters from it- Specified by:
setRMALine
in interfaceIProductPricing
-
-