ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.onhandquantity/m valued stock agg
m_valued_stock_agg
- Name:m_valued_stock_agg
- Classname:ValuedStockAggregated
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. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
M_Costing_Rule_ID | Yes | VARCHAR (32) | Identifies a costing rule for cost calculation. The costing rule defines the algorithm to be used, the date is valid from and if warehouses are used as a cost dimension. |
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. |
C_Currency_ID | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Dateto | No | TIMESTAMP (7) | The Date To indicates the end date of a range (inclusive) |
M_Valued_Stock_Agg_ID | No | VARCHAR (32) | |
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. |
C_Period_ID | Yes | VARCHAR (32) | The Period indicates an exclusive range of dates for a calendar. |
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. |
Stock | No | DECIMAL | |
M_Locator_ID | No | VARCHAR (32) | The Locator ID indicates where in a Warehouse a product is located. |
C_Uom_ID | No | VARCHAR (32) | The UOM defines a unique non monetary unit of measure |
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. |
Valuation | No | DECIMAL |
Columns
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Costing Rule
- Physical column name: M_Costing_Rule_ID
- Property Name: costingRule
- Reference: TableDir
Foreign key column to M_Costing_Rule table, (column: M_Costing_Rule_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
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Ending Date
- Physical column name: Dateto
- Property Name: endingDate
- Reference: Date
M_Valued_Stock_Agg_ID
- Physical column name: M_Valued_Stock_Agg_ID
- Property Name: id
- Reference: ID
- 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)
Period
- Physical column name: C_Period_ID
- Property Name: period
- Reference: TableDir
Foreign key column to C_Period table, (column: C_Period_ID)
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
- This column is a child for a business object (is Parent)
Foreign key column to M_Product table, (column: M_Product_ID)
Starting Date
- Physical column name: Datefrom
- Property Name: startingDate
- Reference: Date
Stock
- Physical column name: Stock
- Property Name: stock
- Reference: Quantity
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: Search
Foreign key column to M_Locator table, (column: M_Locator_ID)
UOM
- Physical column name: C_Uom_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
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)
Valuation
- Physical column name: Valuation
- Property Name: valuation
- Reference: Amount
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_VALUED_STOCK_AGG_COSTRULE Not Unique. Columns:
- M_COSTING_RULE_ID
- M_VALUED_STOCK_AGG_CURRENCY Not Unique. Columns:
- C_CURRENCY_ID
- M_VALUED_STOCK_AGG_DATEFROM Not Unique. Columns:
- DATEFROM
- M_VALUED_STOCK_AGG_LOCATOR Not Unique. Columns:
- M_LOCATOR_ID
- M_VALUED_STOCK_AGG_ORG_DATETO Not Unique. Columns:
- AD_ORG_ID
- DATETO
- M_VALUED_STOCK_AGG_PERIOD Not Unique. Columns:
- C_PERIOD_ID
- M_VALUED_STOCK_AGG_PRODUCT Not Unique. Columns:
- M_PRODUCT_ID
Check Constraints
These are the check constraints for this table:
- M_VALUED_STOCK_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')