|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.ProductCost
public class ProductCost
Product Cost Model. Summarizes Info in MCost
| Field Summary | |
|---|---|
static int |
ACCTTYPE_P_Asset
Product Asset Acct |
static int |
ACCTTYPE_P_Cogs
Product COGS Acct |
static int |
ACCTTYPE_P_CostAdjustment
Cost Adjustment |
static int |
ACCTTYPE_P_Expense
Product Expense Acct |
static int |
ACCTTYPE_P_InventoryClearing
Inventory Clearing |
static int |
ACCTTYPE_P_IPV
Invoice Price Variance |
static int |
ACCTTYPE_P_PPV
Purchase Price Variance |
static int |
ACCTTYPE_P_Revenue
Product Revenue Acct |
static int |
ACCTTYPE_P_TDiscountGrant
Trade Discount Costs |
static int |
ACCTTYPE_P_TDiscountRec
Trade Discount Revenue |
| Constructor Summary | |
|---|---|
ProductCost(Properties ctx,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Constructor |
|
| Method Summary | |
|---|---|
MAccount |
getAccount(int AcctType,
MAcctSchema as)
Line Account from Product |
MAccount |
getAccountDefault(int AcctType,
MAcctSchema as)
Account from Default Product Category |
MProduct |
getProduct()
Get Product |
BigDecimal |
getProductCosts(MAcctSchema as,
int AD_Org_ID,
String costingMethod,
int C_OrderLine_ID,
boolean zeroCostsOK)
Get Total Costs (amt*qty) in Accounting Schema Currency |
boolean |
isService()
Is this a Service |
void |
setQty(BigDecimal qty)
Set Quantity in Storage UOM |
void |
setQty(BigDecimal qty,
int C_UOM_ID)
Set Quantity in UOM |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACCTTYPE_P_Revenue
public static final int ACCTTYPE_P_Expense
public static final int ACCTTYPE_P_Asset
public static final int ACCTTYPE_P_Cogs
public static final int ACCTTYPE_P_PPV
public static final int ACCTTYPE_P_IPV
public static final int ACCTTYPE_P_TDiscountRec
public static final int ACCTTYPE_P_TDiscountGrant
public static final int ACCTTYPE_P_CostAdjustment
public static final int ACCTTYPE_P_InventoryClearing
| Constructor Detail |
|---|
public ProductCost(Properties ctx,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
ctx - contextM_Product_ID - productM_AttributeSetInstance_ID - asitrxName - trx| Method Detail |
|---|
public MProduct getProduct()
public boolean isService()
public void setQty(BigDecimal qty)
qty - quantity
public void setQty(BigDecimal qty,
int C_UOM_ID)
qty - quantityC_UOM_ID - UOM
public MAccount getAccount(int AcctType,
MAcctSchema as)
AcctType - see ACCTTYPE_* (1..8)as - Accounting Schema
public MAccount getAccountDefault(int AcctType,
MAcctSchema as)
AcctType - see ACCTTYPE_* (1..8)as - accounting schema
public BigDecimal getProductCosts(MAcctSchema as,
int AD_Org_ID,
String costingMethod,
int C_OrderLine_ID,
boolean zeroCostsOK)
as - accounting schemaAD_Org_ID - trx orgcostingMethod - if null uses Accounting Schema - AcctSchema.COSTINGMETHOD_*C_OrderLine_ID - optional order linezeroCostsOK - zero/no costs are OK
public String toString()
toString in class Object
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||