|
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_CostQueue
org.compiere.model.MCostQueue
public class MCostQueue
Cost Queue Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_CostQueue |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| 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 | |
|---|---|
MCostQueue(Ctx ctx,
int ignored,
String trxName)
Standard Constructor |
|
MCostQueue(Ctx ctx,
ResultSet rs,
String trxName)
Load Cosntructor |
|
MCostQueue(MProduct product,
int M_AttributeSetInstance_ID,
MAcctSchema as,
int AD_Org_ID,
int M_CostElement_ID,
String trxName)
Parent Constructor |
|
| Method Summary | |
|---|---|
static BigDecimal |
adjustQty(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
BigDecimal Qty,
String trxName)
Adjust Qty based on in Lifo/Fifo order |
static MCostQueue |
get(MProduct product,
int M_AttributeSetInstance_ID,
MAcctSchema as,
int AD_Org_ID,
int M_CostElement_ID,
String trxName)
Get/Create Cost Queue Record. |
static BigDecimal |
getCosts(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
BigDecimal Qty,
String trxName)
Calculate Cost based on Qty based on in Lifo/Fifo order |
static MCostQueue[] |
getQueue(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
String trxName)
Get Cost Queue Records in Lifo/Fifo order |
void |
setCosts(BigDecimal amt,
BigDecimal qty,
int precision)
Update Record. |
| Methods inherited from class org.compiere.model.X_M_CostQueue |
|---|
get_AccessLevel, getC_AcctSchema_ID, getCurrentCostPrice, getCurrentQty, getM_AttributeSetInstance_ID, getM_CostElement_ID, getM_CostQueue_ID, getM_CostType_ID, getM_Product_ID, initPO, setC_AcctSchema_ID, setCurrentCostPrice, setCurrentQty, setM_AttributeSetInstance_ID, setM_CostElement_ID, setM_CostQueue_ID, setM_CostType_ID, setM_Product_ID, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MCostQueue(Ctx ctx,
int ignored,
String trxName)
ctx - contextignored - multi-keytrxName - trx
public MCostQueue(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - trx
public MCostQueue(MProduct product,
int M_AttributeSetInstance_ID,
MAcctSchema as,
int AD_Org_ID,
int M_CostElement_ID,
String trxName)
product - ProductM_AttributeSetInstance_ID - asias - Acct SchemaAD_Org_ID - orgM_CostElement_ID - cost elementtrxName - transaction| Method Detail |
|---|
public static MCostQueue get(MProduct product,
int M_AttributeSetInstance_ID,
MAcctSchema as,
int AD_Org_ID,
int M_CostElement_ID,
String trxName)
product - productM_AttributeSetInstance_ID - real asias - accounting schemaAD_Org_ID - real orgM_CostElement_ID - elementtrxName - transaction
public static MCostQueue[] getQueue(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
String trxName)
product - productM_ASI_ID - costing level ASIas - accounting schemaOrg_ID - costing level orgce - Cost ElementtrxName - transaction
public static BigDecimal adjustQty(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
BigDecimal Qty,
String trxName)
product - productM_ASI_ID - costing level ASIas - accounting schemaOrg_ID - costing level orgce - Cost ElementQty - quantity to be reducedtrxName - transaction
public static BigDecimal getCosts(MProduct product,
int M_ASI_ID,
MAcctSchema as,
int Org_ID,
MCostElement ce,
BigDecimal Qty,
String trxName)
product - productM_ASI_ID - costing level ASIas - accounting schemaOrg_ID - costing level orgce - Cost ElementQty - quantity to be reducedtrxName - transaction
public void setCosts(BigDecimal amt,
BigDecimal qty,
int precision)
amt - total Amountqty - quantityprecision - costing precision
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||