Adempiere 3.5.2a

org.compiere.acct
Class ProductInfo

java.lang.Object
  extended by org.compiere.acct.ProductInfo

public class ProductInfo
extends Object

Product Costing Information.

Version:
$Id: ProductInfo.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
Author:
Jorg Janke

Field Summary
protected  CLogger log
          Logger
 
Constructor Summary
ProductInfo(int M_Product_ID, String trxName)
          Constructor
 
Method Summary
 int getC_RevenueRecognition_ID()
          Get Revenue Recognition
 int getC_UOM_ID()
          Quantity UOM
 String getProductCategory()
          Get Product Category (Value)
 BigDecimal getQty()
          Get Qty in Storage UOM
 boolean isBOM()
          Is it a BOM
 boolean isProduct()
          Is Product/Item
 boolean isRevenueRecognition()
          Has Revenue Recognition
 boolean isService()
          Is Service
 boolean isStocked()
          Is it stocked
 void setQty(BigDecimal qty)
          Set Quantity in Storage UOM
 void setQty(BigDecimal qty, int C_UOM_ID)
          Set Quantity in UOM
 
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

ProductInfo

public ProductInfo(int M_Product_ID,
                   String trxName)
Constructor

Parameters:
M_Product_ID - Product
trxName - transcation
Method Detail

isProduct

public boolean isProduct()
Is Product/Item

Returns:
true if product

isBOM

public boolean isBOM()
Is it a BOM

Returns:
true if BOM

isStocked

public boolean isStocked()
Is it stocked

Returns:
true if stocked

isService

public boolean isService()
Is Service

Returns:
true if service

getProductCategory

public String getProductCategory()
Get Product Category (Value)

Returns:
M_Product_Category_ID

isRevenueRecognition

public boolean isRevenueRecognition()
Has Revenue Recognition

Returns:
true if product/service has revenue recognition

getC_RevenueRecognition_ID

public int getC_RevenueRecognition_ID()
Get Revenue Recognition

Returns:
C_RevenueRecognition_ID

getC_UOM_ID

public int getC_UOM_ID()
Quantity UOM

Returns:
C_UOM_ID

setQty

public void setQty(BigDecimal qty)
Set Quantity in Storage UOM

Parameters:
qty - quantity

setQty

public void setQty(BigDecimal qty,
                   int C_UOM_ID)
Set Quantity in UOM

Parameters:
qty - quantity
C_UOM_ID - UOM

getQty

public BigDecimal getQty()
Get Qty in Storage UOM

Returns:
qty

Adempiere 3.5.2a

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