Package org.compiere.acct
Class ProductInfo
java.lang.Object
org.compiere.acct.ProductInfo
Product Costing Information.
- Version:
- $Id: ProductInfo.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get Revenue Recognitionint
Quantity UOMGet Product Category (Value)getQty()
Get Qty in Storage UOMboolean
isBOM()
Is it a BOMboolean
Is Product/Itemboolean
Has Revenue Recognitionboolean
Is Serviceboolean
Is it stockedvoid
setQty
(BigDecimal qty) Set Quantity in Storage UOMvoid
setQty
(BigDecimal qty, int C_UOM_ID) Set Quantity in UOM
-
Constructor Details
-
ProductInfo
Constructor- Parameters:
M_Product_ID
- ProducttrxName
- transaction
-
-
Method Details
-
isProduct
public boolean isProduct()Is Product/Item- Returns:
- true if product is of item type
-
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
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
Set Quantity in Storage UOM- Parameters:
qty
- quantity
-
setQty
Set Quantity in UOM- Parameters:
qty
- quantityC_UOM_ID
- UOM
-
getQty
Get Qty in Storage UOM- Returns:
- qty
-