Package org.compiere.model
Class X_M_CostDetail
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_M_CostDetail
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_M_CostDetail
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MCostDetail
Generated Model for M_CostDetail
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- See Also:
-
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, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.compiere.model.I_M_CostDetail
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_Amt, COLUMNNAME_C_AcctSchema_ID, COLUMNNAME_C_InvoiceLine_ID, COLUMNNAME_C_OrderLine_ID, COLUMNNAME_C_ProjectIssue_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_CumulatedAmt, COLUMNNAME_CumulatedQty, COLUMNNAME_CurrentCostPrice, COLUMNNAME_CurrentQty, COLUMNNAME_DeltaAmt, COLUMNNAME_DeltaQty, COLUMNNAME_Description, COLUMNNAME_IsActive, COLUMNNAME_IsSOTrx, COLUMNNAME_M_AttributeSetInstance_ID, COLUMNNAME_M_CostDetail_ID, COLUMNNAME_M_CostDetail_UU, COLUMNNAME_M_CostElement_ID, COLUMNNAME_M_InOutLine_ID, COLUMNNAME_M_InventoryLine_ID, COLUMNNAME_M_MatchInv_ID, COLUMNNAME_M_MovementLine_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_M_ProductionLine_ID, COLUMNNAME_PP_Cost_Collector_ID, COLUMNNAME_Price, COLUMNNAME_Processed, COLUMNNAME_Qty, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionX_M_CostDetail
(Properties ctx, int M_CostDetail_ID, String trxName) Standard ConstructorX_M_CostDetail
(Properties ctx, int M_CostDetail_ID, String trxName, String... virtualColumns) Standard ConstructorX_M_CostDetail
(Properties ctx, String M_CostDetail_UU, String trxName) Standard ConstructorX_M_CostDetail
(Properties ctx, String M_CostDetail_UU, String trxName, String... virtualColumns) Standard ConstructorX_M_CostDetail
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelgetAmt()
Get Amount.int
Get Accounting Schema.int
Get Invoice Line.int
Get Sales Order Line.int
Get Project Issue.Get Accumulated Amt.Get Accumulated Qty.Get Current Cost Price.Get Current Quantity.Get Delta Amount.Get Delta Quantity.Get Description.int
Get Attribute Set Instance.int
Get Cost Detail.Get M_CostDetail_UU.int
Get Cost Element.int
Get Shipment/Receipt Line.int
Get Phys.Inventory Line.int
Get Match Invoice.int
Get Move Line.int
Get Product.int
Get Production Line.int
Get Manufacturing Cost Collector.getPrice()
Get Price.getQty()
Get Quantity.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get Processed.boolean
isSOTrx()
Get Sales Transaction.void
setAmt
(BigDecimal Amt) Set Amount.void
setC_AcctSchema_ID
(int C_AcctSchema_ID) Set Accounting Schema.void
setC_InvoiceLine_ID
(int C_InvoiceLine_ID) Set Invoice Line.void
setC_OrderLine_ID
(int C_OrderLine_ID) Set Sales Order Line.void
setC_ProjectIssue_ID
(int C_ProjectIssue_ID) Set Project Issue.void
setCumulatedAmt
(BigDecimal CumulatedAmt) Set Accumulated Amt.void
setCumulatedQty
(BigDecimal CumulatedQty) Set Accumulated Qty.void
setCurrentCostPrice
(BigDecimal CurrentCostPrice) Set Current Cost Price.void
setCurrentQty
(BigDecimal CurrentQty) Set Current Quantity.void
setDeltaAmt
(BigDecimal DeltaAmt) Set Delta Amount.void
setDeltaQty
(BigDecimal DeltaQty) Set Delta Quantity.void
setDescription
(String Description) Set Description.void
setIsSOTrx
(boolean IsSOTrx) Set Sales Transaction.void
setM_AttributeSetInstance_ID
(int M_AttributeSetInstance_ID) Set Attribute Set Instance.void
setM_CostDetail_ID
(int M_CostDetail_ID) Set Cost Detail.void
setM_CostDetail_UU
(String M_CostDetail_UU) Set M_CostDetail_UU.void
setM_CostElement_ID
(int M_CostElement_ID) Set Cost Element.void
setM_InOutLine_ID
(int M_InOutLine_ID) Set Shipment/Receipt Line.void
setM_InventoryLine_ID
(int M_InventoryLine_ID) Set Phys.Inventory Line.void
setM_MatchInv_ID
(int M_MatchInv_ID) Set Match Invoice.void
setM_MovementLine_ID
(int M_MovementLine_ID) Set Move Line.void
setM_Product_ID
(int M_Product_ID) Set Product.void
setM_ProductionLine_ID
(int M_ProductionLine_ID) Set Production Line.void
setPP_Cost_Collector_ID
(int PP_Cost_Collector_ID) Set Manufacturing Cost Collector.void
setPrice
(BigDecimal Price) Set Price.void
setProcessed
(boolean Processed) Set Processed.void
setQty
(BigDecimal Qty) Set Quantity.toString()
String representationMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.model.I_M_CostDetail
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
X_M_CostDetail
Standard Constructor -
X_M_CostDetail
public X_M_CostDetail(Properties ctx, int M_CostDetail_ID, String trxName, String... virtualColumns) Standard Constructor -
X_M_CostDetail
Standard Constructor -
X_M_CostDetail
public X_M_CostDetail(Properties ctx, String M_CostDetail_UU, String trxName, String... virtualColumns) Standard Constructor -
X_M_CostDetail
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
setAmt
Set Amount.- Specified by:
setAmt
in interfaceI_M_CostDetail
- Parameters:
Amt
- Amount
-
getAmt
Get Amount.- Specified by:
getAmt
in interfaceI_M_CostDetail
- Returns:
- Amount
-
getC_AcctSchema
- Specified by:
getC_AcctSchema
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setC_AcctSchema_ID
public void setC_AcctSchema_ID(int C_AcctSchema_ID) Set Accounting Schema.- Specified by:
setC_AcctSchema_ID
in interfaceI_M_CostDetail
- Parameters:
C_AcctSchema_ID
- Rules for accounting
-
getC_AcctSchema_ID
public int getC_AcctSchema_ID()Get Accounting Schema.- Specified by:
getC_AcctSchema_ID
in interfaceI_M_CostDetail
- Returns:
- Rules for accounting
-
getC_InvoiceLine
- Specified by:
getC_InvoiceLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setC_InvoiceLine_ID
public void setC_InvoiceLine_ID(int C_InvoiceLine_ID) Set Invoice Line.- Specified by:
setC_InvoiceLine_ID
in interfaceI_M_CostDetail
- Parameters:
C_InvoiceLine_ID
- Invoice Detail Line
-
getC_InvoiceLine_ID
public int getC_InvoiceLine_ID()Get Invoice Line.- Specified by:
getC_InvoiceLine_ID
in interfaceI_M_CostDetail
- Returns:
- Invoice Detail Line
-
getC_OrderLine
- Specified by:
getC_OrderLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setC_OrderLine_ID
public void setC_OrderLine_ID(int C_OrderLine_ID) Set Sales Order Line.- Specified by:
setC_OrderLine_ID
in interfaceI_M_CostDetail
- Parameters:
C_OrderLine_ID
- Sales Order Line
-
getC_OrderLine_ID
public int getC_OrderLine_ID()Get Sales Order Line.- Specified by:
getC_OrderLine_ID
in interfaceI_M_CostDetail
- Returns:
- Sales Order Line
-
getC_ProjectIssue
- Specified by:
getC_ProjectIssue
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setC_ProjectIssue_ID
public void setC_ProjectIssue_ID(int C_ProjectIssue_ID) Set Project Issue.- Specified by:
setC_ProjectIssue_ID
in interfaceI_M_CostDetail
- Parameters:
C_ProjectIssue_ID
- Project Issues (Material, Labor)
-
getC_ProjectIssue_ID
public int getC_ProjectIssue_ID()Get Project Issue.- Specified by:
getC_ProjectIssue_ID
in interfaceI_M_CostDetail
- Returns:
- Project Issues (Material, Labor)
-
setCumulatedAmt
Set Accumulated Amt.- Specified by:
setCumulatedAmt
in interfaceI_M_CostDetail
- Parameters:
CumulatedAmt
- Total Amount
-
getCumulatedAmt
Get Accumulated Amt.- Specified by:
getCumulatedAmt
in interfaceI_M_CostDetail
- Returns:
- Total Amount
-
setCumulatedQty
Set Accumulated Qty.- Specified by:
setCumulatedQty
in interfaceI_M_CostDetail
- Parameters:
CumulatedQty
- Total Quantity
-
getCumulatedQty
Get Accumulated Qty.- Specified by:
getCumulatedQty
in interfaceI_M_CostDetail
- Returns:
- Total Quantity
-
setCurrentCostPrice
Set Current Cost Price.- Specified by:
setCurrentCostPrice
in interfaceI_M_CostDetail
- Parameters:
CurrentCostPrice
- The currently used cost price
-
getCurrentCostPrice
Get Current Cost Price.- Specified by:
getCurrentCostPrice
in interfaceI_M_CostDetail
- Returns:
- The currently used cost price
-
setCurrentQty
Set Current Quantity.- Specified by:
setCurrentQty
in interfaceI_M_CostDetail
- Parameters:
CurrentQty
- Current Quantity
-
getCurrentQty
Get Current Quantity.- Specified by:
getCurrentQty
in interfaceI_M_CostDetail
- Returns:
- Current Quantity
-
setDeltaAmt
Set Delta Amount.- Specified by:
setDeltaAmt
in interfaceI_M_CostDetail
- Parameters:
DeltaAmt
- Difference Amount
-
getDeltaAmt
Get Delta Amount.- Specified by:
getDeltaAmt
in interfaceI_M_CostDetail
- Returns:
- Difference Amount
-
setDeltaQty
Set Delta Quantity.- Specified by:
setDeltaQty
in interfaceI_M_CostDetail
- Parameters:
DeltaQty
- Quantity Difference
-
getDeltaQty
Get Delta Quantity.- Specified by:
getDeltaQty
in interfaceI_M_CostDetail
- Returns:
- Quantity Difference
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_M_CostDetail
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_M_CostDetail
- Returns:
- Optional short description of the record
-
setIsSOTrx
public void setIsSOTrx(boolean IsSOTrx) Set Sales Transaction.- Specified by:
setIsSOTrx
in interfaceI_M_CostDetail
- Parameters:
IsSOTrx
- This is a Sales Transaction
-
isSOTrx
public boolean isSOTrx()Get Sales Transaction.- Specified by:
isSOTrx
in interfaceI_M_CostDetail
- Returns:
- This is a Sales Transaction
-
getM_AttributeSetInstance
- Specified by:
getM_AttributeSetInstance
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_AttributeSetInstance_ID
public void setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID) Set Attribute Set Instance.- Specified by:
setM_AttributeSetInstance_ID
in interfaceI_M_CostDetail
- Parameters:
M_AttributeSetInstance_ID
- Product Attribute Set Instance
-
getM_AttributeSetInstance_ID
public int getM_AttributeSetInstance_ID()Get Attribute Set Instance.- Specified by:
getM_AttributeSetInstance_ID
in interfaceI_M_CostDetail
- Returns:
- Product Attribute Set Instance
-
setM_CostDetail_ID
public void setM_CostDetail_ID(int M_CostDetail_ID) Set Cost Detail.- Specified by:
setM_CostDetail_ID
in interfaceI_M_CostDetail
- Parameters:
M_CostDetail_ID
- Cost Detail Information
-
getM_CostDetail_ID
public int getM_CostDetail_ID()Get Cost Detail.- Specified by:
getM_CostDetail_ID
in interfaceI_M_CostDetail
- Returns:
- Cost Detail Information
-
setM_CostDetail_UU
Set M_CostDetail_UU.- Specified by:
setM_CostDetail_UU
in interfaceI_M_CostDetail
- Parameters:
M_CostDetail_UU
- M_CostDetail_UU
-
getM_CostDetail_UU
Get M_CostDetail_UU.- Specified by:
getM_CostDetail_UU
in interfaceI_M_CostDetail
- Returns:
- M_CostDetail_UU
-
getM_CostElement
- Specified by:
getM_CostElement
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_CostElement_ID
public void setM_CostElement_ID(int M_CostElement_ID) Set Cost Element.- Specified by:
setM_CostElement_ID
in interfaceI_M_CostDetail
- Parameters:
M_CostElement_ID
- Product Cost Element
-
getM_CostElement_ID
public int getM_CostElement_ID()Get Cost Element.- Specified by:
getM_CostElement_ID
in interfaceI_M_CostDetail
- Returns:
- Product Cost Element
-
getM_InOutLine
- Specified by:
getM_InOutLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_InOutLine_ID
public void setM_InOutLine_ID(int M_InOutLine_ID) Set Shipment/Receipt Line.- Specified by:
setM_InOutLine_ID
in interfaceI_M_CostDetail
- Parameters:
M_InOutLine_ID
- Line on Shipment or Receipt document
-
getM_InOutLine_ID
public int getM_InOutLine_ID()Get Shipment/Receipt Line.- Specified by:
getM_InOutLine_ID
in interfaceI_M_CostDetail
- Returns:
- Line on Shipment or Receipt document
-
getM_InventoryLine
- Specified by:
getM_InventoryLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_InventoryLine_ID
public void setM_InventoryLine_ID(int M_InventoryLine_ID) Set Phys.Inventory Line.- Specified by:
setM_InventoryLine_ID
in interfaceI_M_CostDetail
- Parameters:
M_InventoryLine_ID
- Unique line in an Inventory document
-
getM_InventoryLine_ID
public int getM_InventoryLine_ID()Get Phys.Inventory Line.- Specified by:
getM_InventoryLine_ID
in interfaceI_M_CostDetail
- Returns:
- Unique line in an Inventory document
-
getM_MatchInv
- Specified by:
getM_MatchInv
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_MatchInv_ID
public void setM_MatchInv_ID(int M_MatchInv_ID) Set Match Invoice.- Specified by:
setM_MatchInv_ID
in interfaceI_M_CostDetail
- Parameters:
M_MatchInv_ID
- Match Shipment/Receipt to Invoice
-
getM_MatchInv_ID
public int getM_MatchInv_ID()Get Match Invoice.- Specified by:
getM_MatchInv_ID
in interfaceI_M_CostDetail
- Returns:
- Match Shipment/Receipt to Invoice
-
getM_MovementLine
- Specified by:
getM_MovementLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_MovementLine_ID
public void setM_MovementLine_ID(int M_MovementLine_ID) Set Move Line.- Specified by:
setM_MovementLine_ID
in interfaceI_M_CostDetail
- Parameters:
M_MovementLine_ID
- Inventory Move document Line
-
getM_MovementLine_ID
public int getM_MovementLine_ID()Get Move Line.- Specified by:
getM_MovementLine_ID
in interfaceI_M_CostDetail
- Returns:
- Inventory Move document Line
-
getM_Product
- Specified by:
getM_Product
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_Product_ID
public void setM_Product_ID(int M_Product_ID) Set Product.- Specified by:
setM_Product_ID
in interfaceI_M_CostDetail
- Parameters:
M_Product_ID
- Product, Service, Item
-
getM_Product_ID
public int getM_Product_ID()Get Product.- Specified by:
getM_Product_ID
in interfaceI_M_CostDetail
- Returns:
- Product, Service, Item
-
getM_ProductionLine
- Specified by:
getM_ProductionLine
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setM_ProductionLine_ID
public void setM_ProductionLine_ID(int M_ProductionLine_ID) Set Production Line.- Specified by:
setM_ProductionLine_ID
in interfaceI_M_CostDetail
- Parameters:
M_ProductionLine_ID
- Document Line representing a production
-
getM_ProductionLine_ID
public int getM_ProductionLine_ID()Get Production Line.- Specified by:
getM_ProductionLine_ID
in interfaceI_M_CostDetail
- Returns:
- Document Line representing a production
-
getPP_Cost_Collector
- Specified by:
getPP_Cost_Collector
in interfaceI_M_CostDetail
- Throws:
RuntimeException
-
setPP_Cost_Collector_ID
public void setPP_Cost_Collector_ID(int PP_Cost_Collector_ID) Set Manufacturing Cost Collector.- Specified by:
setPP_Cost_Collector_ID
in interfaceI_M_CostDetail
- Parameters:
PP_Cost_Collector_ID
- Manufacturing Cost Collector
-
getPP_Cost_Collector_ID
public int getPP_Cost_Collector_ID()Get Manufacturing Cost Collector.- Specified by:
getPP_Cost_Collector_ID
in interfaceI_M_CostDetail
- Returns:
- Manufacturing Cost Collector
-
setPrice
Set Price.- Specified by:
setPrice
in interfaceI_M_CostDetail
- Parameters:
Price
- Price
-
getPrice
Get Price.- Specified by:
getPrice
in interfaceI_M_CostDetail
- Returns:
- Price
-
setProcessed
public void setProcessed(boolean Processed) Set Processed.- Specified by:
setProcessed
in interfaceI_M_CostDetail
- Parameters:
Processed
- The document has been processed
-
isProcessed
public boolean isProcessed()Get Processed.- Specified by:
isProcessed
in interfaceI_M_CostDetail
- Returns:
- The document has been processed
-
setQty
Set Quantity.- Specified by:
setQty
in interfaceI_M_CostDetail
- Parameters:
Qty
- Quantity
-
getQty
Get Quantity.- Specified by:
getQty
in interfaceI_M_CostDetail
- Returns:
- Quantity
-