ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.cost/M Costing
M_Costing
- Name:M_Costing
- Classname:MaterialMgmtCosting
This table contains the following columns:
Name | Nullable | Data Type | Description
|
Isactive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
C_Currency_ID | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Cost | Yes | DECIMAL | Cost amount. |
Costtype | No | VARCHAR (60) | Different types of cost. |
M_Costing_ID | No | VARCHAR (32) | Average costs for purchases and productions |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
DateTo | No | TIMESTAMP (7) | The Date To indicates the end date of a range (inclusive) |
M_Transaction_ID | Yes | VARCHAR (32) | The ID identifies a unique record |
C_InvoiceLine_ID | Yes | VARCHAR (32) | The Invoice Line uniquely identifies a single line of an Invoice. |
IsManual | No | CHAR (1) | The Manual check box indicates if the process will done manually. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Originalcost | Yes | DECIMAL | It is the cost originally calculated before processing cost adjustments on related transactions. |
Ispermanent | No | CHAR (1) | |
Price | Yes | DECIMAL | The Price indicates the Price for a product or service. |
M_Product_ID | No | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
Isproduction | Yes | CHAR (1) | Sets the record_id for production. |
Qty | Yes | DECIMAL | The Quantity indicates the number of a specific product or item for this document. |
DateFrom | No | TIMESTAMP (7) | The Date From indicates the starting date of a range. |
Cumstock | Yes | DECIMAL | Cumulate quantity. |
Cumcost | Yes | DECIMAL | |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
M_Warehouse_ID | Yes | VARCHAR (32) | The Warehouse identifies a unique Warehouse where products are stored or Services are provided. |
Columns
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
C_Currency_ID
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
- Default value: 100
Foreign key column to C_Currency table, (column: C_Currency_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Cost
- Physical column name: Cost
- Property Name: cost
- Reference: Number
Cost Type
- Physical column name: Costtype
- Property Name: costType
- Reference: List
List values: Cost Type
The allowed values for this list are:
- AV (Legacy Average): Average cost calculated with old engine
- ST (Legacy Standard): Standard cost based on old engine
- AVA (Average): Average cost
- STA (Standard): Standard cost
Costing
- Physical column name: M_Costing_ID
- Property Name: id
- Reference: ID
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Ending Date
- Physical column name: DateTo
- Property Name: endingDate
- Reference: DateTime
Inventory Transaction
- Physical column name: M_Transaction_ID
- Property Name: inventoryTransaction
- Reference: Search
Foreign key column to M_Transaction table, (column: M_Transaction_ID)
Invoice Line
- Physical column name: C_InvoiceLine_ID
- Property Name: invoiceLine
- Reference: Search
Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)
Manual
- Physical column name: IsManual
- Property Name: manual
- Reference: YesNo
- Default value: N
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org In product costing tab", with the following code
IsReady='Y' AND ad_org_isinnaturaltree(ad_org_id, @Parent_AD_Org@, ad_client_id) ='Y' AND exists (select 1 from ad_orgtype where ad_orgtype.ad_orgtype_id = ad_org.ad_orgtype_id and islegalentity='Y')
Callout: SL_Costing_Currency
This column has a callout associated.
It is implemented by [1] Java Class.
Original Cost
- Physical column name: Originalcost
- Property Name: originalCost
- Reference: Number
Permanent
- Physical column name: Ispermanent
- Property Name: permanent
- Reference: YesNo
- Default value: N
Price
- Physical column name: Price
- Property Name: price
- Reference: Price
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to M_Product table, (column: M_Product_ID)
Production
- Physical column name: Isproduction
- Property Name: production
- Reference: YesNo
- Default value: N
Quantity
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Starting Date
- Physical column name: DateFrom
- Property Name: startingDate
- Reference: DateTime
- This column is part of the table's identifier
Total Movement Quantity
- Physical column name: Cumstock
- Property Name: totalMovementQuantity
- Reference: Quantity
Total Stock Valuation
- Physical column name: Cumcost
- Property Name: totalStockValuation
- Reference: Number
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Warehouse
- Physical column name: M_Warehouse_ID
- Property Name: warehouse
- Reference: TableDir
Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- M_COSTING_INVOICELINE_IDX Not Unique. Columns:
- C_INVOICELINE_ID
- M_COSTING_PRODUCT_DATE Not Unique. Columns:
- M_PRODUCT_ID
- DATEFROM
- DATETO
- M_COSTING_TRANSACTION Not Unique. Columns:
- M_TRANSACTION_ID
Check Constraints
These are the check constraints for this table:
- M_COSTING_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')