|
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.PO
org.compiere.model.X_M_CostElement
org.compiere.model.MCostElement
public class MCostElement
Cost Element Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_M_CostElement |
|---|
accessLevel, COLUMNNAME_CostElementType, COLUMNNAME_CostingMethod, COLUMNNAME_Description, COLUMNNAME_IsCalculated, COLUMNNAME_M_CostElement_ID, COLUMNNAME_Name, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MCostElement(Properties ctx,
int M_CostElement_ID,
String trxName)
Standard Constructor |
|
MCostElement(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeDelete()
Before Delete |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MCostElement |
get(Properties ctx,
int M_CostElement_ID)
Get Cost Element from Cache |
static MCostElement[] |
getCostingMethods(PO po)
Get active Material Cost Element for client |
static MCostElement[] |
getElements(Properties ctx,
int AD_Client_ID,
int AD_Org_ID,
String trxName)
Get Costs Record for a Cost Type |
static MCostElement |
getMaterialCostElement(PO po,
String CostingMethod)
Get Material Cost Element or create it |
static MCostElement |
getMaterialCostElement(Properties ctx,
String CostingMethod)
Get first Material Cost Element |
static MCostElement[] |
getNonCostingMethods(PO po)
Get active non Material Cost Element for client |
boolean |
isAverageInvoice()
Is Avg Invoice Costing Method |
boolean |
isAveragePO()
Is Avg PO Costing Method |
boolean |
isCostingMethod()
Is this a Costing Method |
boolean |
isFifo()
Is FiFo Costing Method |
boolean |
isLastInvoice()
Is Last Invoice Costing Method |
boolean |
isLastPOPrice()
Is Last PO Costing Method |
boolean |
isLifo()
Is LiFo Costing Method |
boolean |
isStandardCosting()
Is Std Costing Method |
boolean |
isUserDefined()
Is User Costing Method |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_M_CostElement |
|---|
get_AccessLevel, getCostElementType, getCostingMethod, getDescription, getKeyNamePair, getM_CostElement_ID, getName, initPO, isCalculated, setCostElementType, setCostingMethod, setDescription, setIsCalculated, setM_CostElement_ID, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MCostElement(Properties ctx,
int M_CostElement_ID,
String trxName)
ctx - contextM_CostElement_ID - idtrxName - trx
public MCostElement(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - trx| Method Detail |
|---|
public static MCostElement getMaterialCostElement(PO po,
String CostingMethod)
po - parentCostingMethod - method
public static MCostElement getMaterialCostElement(Properties ctx,
String CostingMethod)
ctx - contextCostingMethod - costing method
public static MCostElement[] getCostingMethods(PO po)
po - parent
public static MCostElement[] getNonCostingMethods(PO po)
po - parent
public static MCostElement get(Properties ctx,
int M_CostElement_ID)
ctx - contextM_CostElement_ID - id
public static MCostElement[] getElements(Properties ctx,
int AD_Client_ID,
int AD_Org_ID,
String trxName)
ctx - contextAD_Client_ID - clientAD_Org_ID - org
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean beforeDelete()
beforeDelete in class POpublic boolean isCostingMethod()
public boolean isAverageInvoice()
public boolean isAveragePO()
public boolean isFifo()
public boolean isLastInvoice()
public boolean isLastPOPrice()
public boolean isLifo()
public boolean isStandardCosting()
public boolean isUserDefined()
public String toString()
toString in class X_M_CostElement
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||