|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.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.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MCostElement(Ctx ctx,
int M_CostElement_ID,
String trxName)
Standard Constructor |
|
MCostElement(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeDelete()
Before Delete |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MCostElement |
get(Ctx ctx,
int M_CostElement_ID)
Get Cost Element from Cache |
static MCostElement[] |
getCostingMethods(PO po)
Get active Material Cost Element for client |
static MCostElement |
getMaterialCostElement(Ctx ctx,
String CostingMethod)
Get first Material Cost Element |
static MCostElement |
getMaterialCostElement(PO po,
String CostingMethod)
Get Material Cost Element or create it |
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, isCostElementTypeValid, isCostingMethodValid, setCostElementType, setCostingMethod, setDescription, setIsCalculated, setM_CostElement_ID, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MCostElement(Ctx ctx,
int M_CostElement_ID,
String trxName)
ctx - contextM_CostElement_ID - idtrxName - trx
public MCostElement(Ctx 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(Ctx ctx,
String CostingMethod)
ctx - contextCostingMethod - costing method
public static MCostElement[] getCostingMethods(PO po)
po - parent
public static MCostElement get(Ctx ctx,
int M_CostElement_ID)
ctx - contextM_CostElement_ID - id
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
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||