View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.cost/M Costing

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.cost


Contents

M_Costing

This table contains the following columns:

Name Nullable Data Type Description


M_Costing_ID No VARCHAR (32) Average costs for purchases and productions
Created No TIMESTAMP (7) The Created field indicates the date that this record was created.
Createdby No VARCHAR (32) The Created By field indicates the user who created this record.
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.
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
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.
M_Product_ID No VARCHAR (32) Identifies an item which is either purchased or sold in this organization.
DateFrom No TIMESTAMP (7) The Date From indicates the starting date of a range.
DateTo No TIMESTAMP (7) The Date To indicates the end date of a range (inclusive)
IsManual No CHAR (1) The Manual check box indicates if the process will done manually.
M_InOutLine_ID Yes VARCHAR (32) The Goods Shipment Line indicates a unique line in a Shipment document
C_InvoiceLine_ID Yes VARCHAR (32) The Invoice Line uniquely identifies a single line of an Invoice.
Qty Yes DECIMAL The Quantity indicates the number of a specific product or item for this document.
Price Yes DECIMAL The Price indicates the Price for a product or service.
Cumstock Yes DECIMAL Cumulate quantity.
Costtype No VARCHAR (60) Different types of cost.
Ispermanent No CHAR (1)
Cost Yes DECIMAL Cost amount.
M_ProductionLine_ID Yes VARCHAR (32) The Production Line indicates the production document line (if applicable) for this transaction
Isproduction Yes CHAR (1) Sets the record_id for production.
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.

M_Warehouse_ID Yes VARCHAR (32) The Warehouse identifies a unique Warehouse where products are stored or Services are provided.
M_Transaction_ID Yes VARCHAR (32) The ID identifies a unique record
C_Currency_ID No VARCHAR (32) Indicates the currency to be used when processing this document.
Originalcost Yes DECIMAL It is the cost originally calculated before processing cost adjustments on related transactions.
Cumcost Yes DECIMAL

Columns

Costing



top


Creation Date



top


Created By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Updated



top


Updated By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Client


Foreign key column to AD_Client table, (column: AD_Client_ID)

top


Organization


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

(

(@isCostMigrated@ IS NULL AND AD_ISORGINCLUDED(ad_org.ad_org_id, @Product_Org@, ad_org.ad_client_id)<>-1 AND IsReady = 'Y') OR (@isCostMigrated@ IS NOT NULL AND exists (select 1 from ad_orgtype where ad_orgtype.ad_orgtype_id = ad_org.ad_orgtype_id and islegalentity='Y')

AND IsReady='Y' AND ad_org_isinnaturaltree(ad_org_id, @Parent_AD_Org@, ad_client_id) ='Y')

)

Callout: SL_Costing_Currency

This column has a callout associated.

It is implemented by [1] Java Class.

top


Product

Foreign key column to M_Product table, (column: M_Product_ID)

top


Starting Date


top


Ending Date



top


Manual



top


Goods Shipment Line


Foreign key column to M_InOutLine table, (column: M_InOutLine_ID)

top


Invoice Line


Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)

top


Quantity



top


Price



top


Total Movement Quantity



top


Cost Type



It has a validation "Costs migrated", with the following code

((@Cost_Eng_Ins_Migrated@='Y' AND AD_Ref_List.Value NOT IN ('AV', 'ST')) OR (@Cost_Eng_Ins_Migrated@ is null AND AD_Ref_List.Value IN ('AV', 'ST')))

List values: Cost Type

The allowed values for this list are:

top


Permanent



top


Cost



top


Production Line


Foreign key column to M_ProductionLine table, (column: M_ProductionLine_ID)

top


Production



top


Active



top


Warehouse


Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)

top


Inventory Transaction


Foreign key column to M_Transaction table, (column: M_Transaction_ID)

top


C_Currency_ID


Foreign key column to C_Currency table, (column: C_Currency_ID)

top


Original Cost



top


Total Stock Valuation



top


Other Info

Indices

These are the indices for this table (for each index there is a list of all the columns included within it):

top

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.materialmgmt.cost

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Database_Model/org.openbravo.model.materialmgmt.cost/M_Costing"

This page has been accessed 1,016 times. This page was last modified on 1 May 2016, at 02:14. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.