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
Modifier and TypeFieldDescriptionprotected int
protected boolean
protected int
protected int
protected int
protected Timestamp
protected BigDecimal
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
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 itMethods 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 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: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
- Specified by:
setQty
in interfaceIProductPricing
-
getPriceDate
Description copied from interface:IProductPricing
Get Price Date- Specified by:
getPriceDate
in interfaceIProductPricing
- Returns:
- date
-
setPriceDate
Description copied from interface:IProductPricing
Set Price Date- Specified by:
setPriceDate
in interfaceIProductPricing
- Parameters:
priceDate
- date
-
setOrderLine
Description copied from interface:IProductPricing
Set order line and calculate the parameters from it- Specified by:
setOrderLine
in interfaceIProductPricing
-
setInvoiceLine
Description copied from interface:IProductPricing
Set invoice line and calculate the parameters from it- Specified by:
setInvoiceLine
in interfaceIProductPricing
-
setProjectLine
Description copied from interface:IProductPricing
Set project line and calculate the parameters from it- Specified by:
setProjectLine
in interfaceIProductPricing
-
setRequisitionLine
Description copied from interface:IProductPricing
Set requisition line and calculate the parameters from it- Specified by:
setRequisitionLine
in interfaceIProductPricing
-
setRMALine
Description copied from interface:IProductPricing
Set rma line and calculate the parameters from it- Specified by:
setRMALine
in interfaceIProductPricing
-