Class Costing
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.materialmgmt.cost.Costing
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class Costing extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity MaterialMgmtCosting (stored in table M_Costing).
Help: Stores the average costs for purchases and productions
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column Isactive in table M_Costingstatic String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table M_Costingstatic String
PROPERTY_COST
Property cost stored in column Cost in table M_Costing
Help: Cost amount.static String
PROPERTY_COSTTYPE
Property costType stored in column Costtype in table M_Costing
Help: Different types of cost.static String
PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table M_Costingstatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table M_Costingstatic String
PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table M_Costing
Help: Indicates the currency to be used when processing this document.static String
PROPERTY_ENDINGDATE
Property endingDate stored in column DateTo in table M_Costing
Help: The Date To indicates the end date of a range (inclusive)static String
PROPERTY_ID
Property id stored in column M_Costing_ID in table M_Costing
Help: Average costs for purchases and productionsstatic String
PROPERTY_INVENTORYTRANSACTION
Property inventoryTransaction stored in column M_Transaction_ID in table M_Costing
Help: The ID identifies a unique recordstatic String
PROPERTY_INVOICELINE
Property invoiceLine stored in column C_InvoiceLine_ID in table M_Costing
Help: The Invoice Line uniquely identifies a single line of an Invoice.static String
PROPERTY_MANUAL
Property manual stored in column IsManual in table M_Costing
Help: The Manual check box indicates if the process will done manually.static String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table M_Costingstatic String
PROPERTY_ORIGINALCOST
Property originalCost stored in column Originalcost in table M_Costing
Help: It is the cost originally calculated before processing cost adjustments on related transactions.static String
PROPERTY_PERMANENT
Property permanent stored in column Ispermanent in table M_Costingstatic String
PROPERTY_PRICE
Property price stored in column Price in table M_Costing
Help: The Price indicates the Price for a product or service.static String
PROPERTY_PRODUCT
Property product stored in column M_Product_ID in table M_Costing
Help: Identifies an item which is either purchased or sold in this organization.static String
PROPERTY_PRODUCTION
Property production stored in column Isproduction in table M_Costing
Help: Sets the record_id for production.static String
PROPERTY_QUANTITY
Property quantity stored in column Qty in table M_Costing
Help: The Quantity indicates the number of a specific product or item for this document.static String
PROPERTY_STARTINGDATE
Property startingDate stored in column DateFrom in table M_Costingstatic String
PROPERTY_TOTALMOVEMENTQUANTITY
Property totalMovementQuantity stored in column Cumstock in table M_Costing
Help: Cumulate quantity.static String
PROPERTY_TOTALSTOCKVALUATION
Property totalStockValuation stored in column Cumcost in table M_Costingstatic String
PROPERTY_UPDATED
Property updated stored in column Updated in table M_Costingstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table M_Costingstatic String
PROPERTY_WAREHOUSE
Property warehouse stored in column M_Warehouse_ID in table M_Costing
Help: The Warehouse identifies a unique Warehouse where products are stored or Services are provided.static String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description Costing()
-
Method Summary
-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column M_Costing_ID in table M_Costing
Help: Average costs for purchases and productions- See Also:
- Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table M_Costing- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table M_Costing- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table M_Costing- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table M_Costing- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table M_Costing- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table M_Costing- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_PRODUCT
public static final String PROPERTY_PRODUCT
Property product stored in column M_Product_ID in table M_Costing
Help: Identifies an item which is either purchased or sold in this organization.- See Also:
- Constant Field Values
-
PROPERTY_STARTINGDATE
public static final String PROPERTY_STARTINGDATE
Property startingDate stored in column DateFrom in table M_Costing- See Also:
- Constant Field Values
-
PROPERTY_ENDINGDATE
public static final String PROPERTY_ENDINGDATE
Property endingDate stored in column DateTo in table M_Costing
Help: The Date To indicates the end date of a range (inclusive)- See Also:
- Constant Field Values
-
PROPERTY_MANUAL
public static final String PROPERTY_MANUAL
Property manual stored in column IsManual in table M_Costing
Help: The Manual check box indicates if the process will done manually.- See Also:
- Constant Field Values
-
PROPERTY_INVOICELINE
public static final String PROPERTY_INVOICELINE
Property invoiceLine stored in column C_InvoiceLine_ID in table M_Costing
Help: The Invoice Line uniquely identifies a single line of an Invoice.- See Also:
- Constant Field Values
-
PROPERTY_QUANTITY
public static final String PROPERTY_QUANTITY
Property quantity stored in column Qty in table M_Costing
Help: The Quantity indicates the number of a specific product or item for this document.- See Also:
- Constant Field Values
-
PROPERTY_PRICE
public static final String PROPERTY_PRICE
Property price stored in column Price in table M_Costing
Help: The Price indicates the Price for a product or service.- See Also:
- Constant Field Values
-
PROPERTY_TOTALMOVEMENTQUANTITY
public static final String PROPERTY_TOTALMOVEMENTQUANTITY
Property totalMovementQuantity stored in column Cumstock in table M_Costing
Help: Cumulate quantity.- See Also:
- Constant Field Values
-
PROPERTY_COSTTYPE
public static final String PROPERTY_COSTTYPE
Property costType stored in column Costtype in table M_Costing
Help: Different types of cost.- See Also:
- Constant Field Values
-
PROPERTY_PERMANENT
public static final String PROPERTY_PERMANENT
Property permanent stored in column Ispermanent in table M_Costing- See Also:
- Constant Field Values
-
PROPERTY_COST
public static final String PROPERTY_COST
Property cost stored in column Cost in table M_Costing
Help: Cost amount.- See Also:
- Constant Field Values
-
PROPERTY_TOTALSTOCKVALUATION
public static final String PROPERTY_TOTALSTOCKVALUATION
Property totalStockValuation stored in column Cumcost in table M_Costing- See Also:
- Constant Field Values
-
PROPERTY_PRODUCTION
public static final String PROPERTY_PRODUCTION
Property production stored in column Isproduction in table M_Costing
Help: Sets the record_id for production.- See Also:
- Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column Isactive in table M_Costing- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_WAREHOUSE
public static final String PROPERTY_WAREHOUSE
Property warehouse stored in column M_Warehouse_ID in table M_Costing
Help: The Warehouse identifies a unique Warehouse where products are stored or Services are provided.- See Also:
- Constant Field Values
-
PROPERTY_INVENTORYTRANSACTION
public static final String PROPERTY_INVENTORYTRANSACTION
Property inventoryTransaction stored in column M_Transaction_ID in table M_Costing
Help: The ID identifies a unique record- See Also:
- Constant Field Values
-
PROPERTY_CURRENCY
public static final String PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table M_Costing
Help: Indicates the currency to be used when processing this document.- See Also:
- Constant Field Values
-
PROPERTY_ORIGINALCOST
public static final String PROPERTY_ORIGINALCOST
Property originalCost stored in column Originalcost in table M_Costing
Help: It is the cost originally calculated before processing cost adjustments on related transactions.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
getProduct
public Product getProduct()
- See Also:
PROPERTY_PRODUCT
-
setProduct
public void setProduct(Product product)
- See Also:
PROPERTY_PRODUCT
-
getStartingDate
public Date getStartingDate()
- See Also:
PROPERTY_STARTINGDATE
-
setStartingDate
public void setStartingDate(Date startingDate)
- See Also:
PROPERTY_STARTINGDATE
-
getEndingDate
public Date getEndingDate()
- See Also:
PROPERTY_ENDINGDATE
-
setEndingDate
public void setEndingDate(Date endingDate)
- See Also:
PROPERTY_ENDINGDATE
-
isManual
public Boolean isManual()
- See Also:
PROPERTY_MANUAL
-
setManual
public void setManual(Boolean manual)
- See Also:
PROPERTY_MANUAL
-
getInvoiceLine
public InvoiceLine getInvoiceLine()
- See Also:
PROPERTY_INVOICELINE
-
setInvoiceLine
public void setInvoiceLine(InvoiceLine invoiceLine)
- See Also:
PROPERTY_INVOICELINE
-
getQuantity
public BigDecimal getQuantity()
- See Also:
PROPERTY_QUANTITY
-
setQuantity
public void setQuantity(BigDecimal quantity)
- See Also:
PROPERTY_QUANTITY
-
getPrice
public BigDecimal getPrice()
- See Also:
PROPERTY_PRICE
-
setPrice
public void setPrice(BigDecimal price)
- See Also:
PROPERTY_PRICE
-
getTotalMovementQuantity
public BigDecimal getTotalMovementQuantity()
- See Also:
PROPERTY_TOTALMOVEMENTQUANTITY
-
setTotalMovementQuantity
public void setTotalMovementQuantity(BigDecimal totalMovementQuantity)
- See Also:
PROPERTY_TOTALMOVEMENTQUANTITY
-
getCostType
public String getCostType()
- See Also:
PROPERTY_COSTTYPE
-
setCostType
public void setCostType(String costType)
- See Also:
PROPERTY_COSTTYPE
-
isPermanent
public Boolean isPermanent()
- See Also:
PROPERTY_PERMANENT
-
setPermanent
public void setPermanent(Boolean permanent)
- See Also:
PROPERTY_PERMANENT
-
getCost
public BigDecimal getCost()
- See Also:
PROPERTY_COST
-
setCost
public void setCost(BigDecimal cost)
- See Also:
PROPERTY_COST
-
getTotalStockValuation
public BigDecimal getTotalStockValuation()
- See Also:
PROPERTY_TOTALSTOCKVALUATION
-
setTotalStockValuation
public void setTotalStockValuation(BigDecimal totalStockValuation)
- See Also:
PROPERTY_TOTALSTOCKVALUATION
-
isProduction
public Boolean isProduction()
- See Also:
PROPERTY_PRODUCTION
-
setProduction
public void setProduction(Boolean production)
- See Also:
PROPERTY_PRODUCTION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getWarehouse
public Warehouse getWarehouse()
- See Also:
PROPERTY_WAREHOUSE
-
setWarehouse
public void setWarehouse(Warehouse warehouse)
- See Also:
PROPERTY_WAREHOUSE
-
getInventoryTransaction
public MaterialTransaction getInventoryTransaction()
- See Also:
PROPERTY_INVENTORYTRANSACTION
-
setInventoryTransaction
public void setInventoryTransaction(MaterialTransaction inventoryTransaction)
- See Also:
PROPERTY_INVENTORYTRANSACTION
-
getCurrency
public Currency getCurrency()
- See Also:
PROPERTY_CURRENCY
-
setCurrency
public void setCurrency(Currency currency)
- See Also:
PROPERTY_CURRENCY
-
getOriginalCost
public BigDecimal getOriginalCost()
- See Also:
PROPERTY_ORIGINALCOST
-
setOriginalCost
public void setOriginalCost(BigDecimal originalCost)
- See Also:
PROPERTY_ORIGINALCOST
-
-