Adempiere 3.5.2a

org.compiere.model
Class MProductPricing

java.lang.Object
  extended by org.compiere.model.MProductPricing

public class MProductPricing
extends Object

Product Price Calculations

Version:
$Id: MProductPricing.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke

Field Summary
protected  CLogger log
          Logger
 
Constructor Summary
MProductPricing(int M_Product_ID, int C_BPartner_ID, BigDecimal Qty, boolean isSOTrx)
          Constructor
 
Method Summary
 boolean calculatePrice()
          Calculate Price
 int getC_Currency_ID()
          Get Price List Currency
 int getC_UOM_ID()
          Get C_UOM_ID
 BigDecimal getDiscount()
          Calculate Discount Percentage based on Standard/List Price
 int getM_PriceList_ID()
          Get PriceList ID
 int getM_PriceList_Version_ID()
          Get PriceList Version
 int getM_Product_ID()
          Get Product ID
 int getPrecision()
          Get Precision
 Timestamp getPriceDate()
          Get Price Date
 BigDecimal getPriceLimit()
          Get Price Limit
 BigDecimal getPriceList()
          Get Price List
 BigDecimal getPriceStd()
          Get Price Std
 boolean isCalculated()
          Is the Price Calculated (i.e. found)?
 boolean isDiscountSchema()
          Is a DiscountSchema active?
 boolean isEnforcePriceLimit()
          Is Price List enforded?
 boolean isTaxIncluded()
          Is Tax Included
 void setM_PriceList_ID(int M_PriceList_ID)
          Set PriceList
 void setM_PriceList_Version_ID(int M_PriceList_Version_ID)
          Set PriceList Version
 void setPriceDate(Timestamp priceDate)
          Set Price Date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected CLogger log
Logger

Constructor Detail

MProductPricing

public MProductPricing(int M_Product_ID,
                       int C_BPartner_ID,
                       BigDecimal Qty,
                       boolean isSOTrx)
Constructor

Parameters:
M_Product_ID - product
C_BPartner_ID - partner
Qty - quantity
isSOTrx - SO or PO
Method Detail

calculatePrice

public boolean calculatePrice()
Calculate Price

Returns:
true if calculated

isTaxIncluded

public boolean isTaxIncluded()
Is Tax Included

Returns:
tax included

getDiscount

public BigDecimal getDiscount()
Calculate Discount Percentage based on Standard/List Price

Returns:
Discount

getM_Product_ID

public int getM_Product_ID()
Get Product ID

Returns:
id

getM_PriceList_ID

public int getM_PriceList_ID()
Get PriceList ID

Returns:
pl

setM_PriceList_ID

public void setM_PriceList_ID(int M_PriceList_ID)
Set PriceList

Parameters:
M_PriceList_ID - pl

getM_PriceList_Version_ID

public int getM_PriceList_Version_ID()
Get PriceList Version

Returns:
plv

setM_PriceList_Version_ID

public void setM_PriceList_Version_ID(int M_PriceList_Version_ID)
Set PriceList Version

Parameters:
M_PriceList_Version_ID - plv

getPriceDate

public Timestamp getPriceDate()
Get Price Date

Returns:
date

setPriceDate

public void setPriceDate(Timestamp priceDate)
Set Price Date

Parameters:
priceDate - date

getPrecision

public int getPrecision()
Get Precision

Returns:
precision - -1 = no rounding

getC_UOM_ID

public int getC_UOM_ID()
Get C_UOM_ID

Returns:
uom

getPriceList

public BigDecimal getPriceList()
Get Price List

Returns:
list

getPriceStd

public BigDecimal getPriceStd()
Get Price Std

Returns:
std

getPriceLimit

public BigDecimal getPriceLimit()
Get Price Limit

Returns:
limit

getC_Currency_ID

public int getC_Currency_ID()
Get Price List Currency

Returns:
currency

isEnforcePriceLimit

public boolean isEnforcePriceLimit()
Is Price List enforded?

Returns:
enforce limit

isDiscountSchema

public boolean isDiscountSchema()
Is a DiscountSchema active?

Returns:
active Discount Schema

isCalculated

public boolean isCalculated()
Is the Price Calculated (i.e. found)?

Returns:
calculated

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.