ERP/2.50/Developers Guide/Database Model/org.openbravo.model.materialmgmt.cost/M Costing
M_Costing
Stores the average costs for purchases and productions
- Name:MaterialMgmtCosting
- Classname:Costing
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_Costing_ID | N | VARCHAR2(32) | null |
Created | N | DATE | The date that this record is completed. |
Createdby | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
Updatedby | N | VARCHAR2(32) | User who updated this records |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
M_Product_ID | N | VARCHAR2(32) | An item produced by a process. |
DateFrom | Y | DATE | A parameter stating the starting time range related to a specified request. |
DateTo | Y | DATE | A parameter stating the ending time range related for a specified request, query, etc. |
IsManual | N | CHAR(1) | A task or process completed directly by the user, not automatically by the application. |
M_InOutLine_ID | Y | VARCHAR2(32) | A statement displaying one item, charge, or movement in a shipment. |
C_InvoiceLine_ID | Y | VARCHAR2(32) | A statement displaying one item or charge in an invoice. |
Qty | Y | NUMBER | The number of a certain item. |
Price | Y | NUMBER | The cost or value of a good or service. |
Cumqty | Y | NUMBER | The final quantity to be moved based on the related business process. |
Costtype | N | VARCHAR2(60) | A distinct cost characteristic used for processes. |
Ispermanent | N | CHAR(1) | null |
Cost | Y | NUMBER | A charge related to conducting business. |
M_ProductionLine_ID | Y | VARCHAR2(32) | A statement displaying one item or action in the application. |
Isproduction | Y | CHAR(1) | An indication that an item is being used in production. |
Isactive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Other Info
Check constraints
These are the check constraints for this table:
- M_COSTING_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- M_COSTING_M_PRODUCT_ID
Unique
- M_COSTING_KEY
Columns
Costing
Average costs for purchases and productions
- Physical column name: M_Costing_ID
- Property Name: id
- Reference: ID
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: @#Date@
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: @#Date@
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_ORG_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
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 buisiness object (is Parent)
Foreign key column to M_Product table, (column: M_Product_ID)
Starting Date
The Date From indicates the starting date of a range.
- Physical column name: DateFrom
- Property Name: startingDate
- Reference: Date
- This column is part of the table's identifier
Ending Date
The Date To indicates the end date of a range (inclusive)
- Physical column name: DateTo
- Property Name: endingDate
- Reference: Date
Manual
The Manual check box indicates if the process will done manually.
- Physical column name: IsManual
- Property Name: manual
- Reference: YesNo
- Default value: N
Goods Shipment Line
- Physical column name: M_InOutLine_ID
- Property Name: goodsShipmentLine
- Reference: Search
Foreign key column to M_InOutLine table, (column: M_InOutLine_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)
Quantity
The Quantity indicates the number of a specific product or item for this document.
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Price
The Price indicates the Price for a product or service.
- Physical column name: Price
- Property Name: price
- Reference: Price
Total Movement Quantity
Cumulate quantity.
- Physical column name: Cumqty
- Property Name: totalMovementQuantity
- Reference: Quantity
Cost Type
Different types of cost
- Physical column name: Costtype
- Property Name: costType
- Reference: List
List values: Cost Type
The allowed values for this list are:
- AV (Average)
- ST (Standard)
Permanent
- Physical column name: Ispermanent
- Property Name: permanent
- Reference: YesNo
- Default value: N
Cost
Cost amount. The amount must be expressed in the currency of the System.
- Physical column name: Cost
- Property Name: cost
- Reference: Number
Production Line
- Physical column name: M_ProductionLine_ID
- Property Name: productionLine
- Reference: Search
Foreign key column to M_ProductionLine table, (column: M_ProductionLine_ID)
Production
Sets the record_id for production.
- Physical column name: Isproduction
- Property Name: production
- Reference: YesNo
- Default value: N
Active
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.
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y