ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M Inventory
M_Inventory
- Name:M_Inventory
- Classname:MaterialMgmtInventoryCount
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
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_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
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. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
DocumentNo | Yes | NVARCHAR (30) | The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order). |
ExportCsv | Yes | CHAR (1) | Physical inventory lines are exported to a CSV file in order to help with the counting process. The CSV file can be imported afterwards with the updated quantities. |
ExportedCsvDate | Yes | TIMESTAMP (7) | Date when the physical inventory csv was exported |
GenerateList | Yes | CHAR (1) | A button that generates a list to make an inventory of items |
Inventory_Type | No | VARCHAR (60) | Defines the type of inventory being performed. |
MovementDate | No | TIMESTAMP (7) | The Movement Date indicates the date that a product moved in or out of inventory. This is the result of a shipment, receipt or inventory movement. |
Name | No | NVARCHAR (100) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
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_Inventory_ID | No | VARCHAR (32) | The Physical Inventory indicates a unique parameters for a physical inventory. |
Posted | No | VARCHAR (60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand. |
ProcessDate | Yes | TIMESTAMP (7) | Date when the physical inventory was processed |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
AD_OrgTrx_ID | Yes | VARCHAR (32) | The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions. |
UpdateQty | Yes | CHAR (1) | Update the quantities that has been changed into the original quantities. This only can do it before you process the inventory |
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 | No | VARCHAR (32) | The Warehouse identifies a unique Warehouse where products are stored or Services are provided. |
Columns
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
Asset
- Physical column name: A_Asset_ID
- Property Name: asset
- Reference: OBUISEL_Selector Reference
Foreign key column to A_Asset table, (column: A_Asset_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 Center
- Physical column name: C_Costcenter_ID
- Property Name: costCenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_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
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
ExportCsv
- Physical column name: ExportCsv
- Property Name: exportCsv
- Reference: Button
- Default value: N
Exported Csv Date
- Physical column name: ExportedCsvDate
- Property Name: exportedCsvDate
- Reference: Date
Generate List
- Physical column name: GenerateList
- Property Name: generateList
- Reference: Button
- Default value: Y
Inventory Type
- Physical column name: Inventory_Type
- Property Name: inventoryType
- Reference: List
- Default value: N
List values: Inventory Types
The allowed values for this list are:
- N (Normal)
- O (Opening Inventory)
- C (Closing Inventory)
- T (Total)
Movement Date
- Physical column name: MovementDate
- Property Name: movementDate
- Reference: Date
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Phys.Inventory
- Physical column name: M_Inventory_ID
- Property Name: id
- Reference: ID
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
Process Date
- Physical column name: ProcessDate
- Property Name: processDate
- Reference: Date
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
Update Quantities
- Physical column name: UpdateQty
- Property Name: updateQuantities
- Reference: Button
- Default value: N
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: Table
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_INVENTORY_DOCNO Not Unique. Columns:
- DOCUMENTNO
- M_INVENTORY_MVMTDATE Not Unique. Columns:
- MOVEMENTDATE
- M_INVENTORY_POSTED Not Unique. Columns:
- POSTED
Check Constraints
These are the check constraints for this table:
- M_INVENTORY_EXPORTCSV_CHECK: EXPORTCSV IN ('Y', 'N')
- M_INVENTORY_GENERATELIST_CHK: GENERATELIST IN ('Y', 'N')
- M_INVENTORY_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- M_INVENTORY_PROCESSED_CHECK: PROCESSED IN ('Y', 'N')
- M_INVENTORY_UPDATEQTY_CHECK: UPDATEQTY IN ('Y', 'N')