Package org.compiere.acct
Class ProductInfo
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description ProductInfo(int M_Product_ID, String trxName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getC_RevenueRecognition_ID()
Get Revenue Recognitionint
getC_UOM_ID()
Quantity UOMString
getProductCategory()
Get Product Category (Value)BigDecimal
getQty()
Get Qty in Storage UOMboolean
isBOM()
Is it a BOMboolean
isProduct()
Is Product/Itemboolean
isRevenueRecognition()
Has Revenue Recognitionboolean
isService()
Is Serviceboolean
isStocked()
Is it stockedvoid
setQty(BigDecimal qty)
Set Quantity in Storage UOMvoid
setQty(BigDecimal qty, int C_UOM_ID)
Set Quantity in UOM
-
-
-
Constructor Detail
-
ProductInfo
public ProductInfo(int M_Product_ID, String trxName)
Constructor- Parameters:
M_Product_ID
- ProducttrxName
- 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
- quantityC_UOM_ID
- UOM
-
getQty
public BigDecimal getQty()
Get Qty in Storage UOM- Returns:
- qty
-
-