ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.onhandquantity/M Storage Detail
M_Storage_Detail
- Name:M_Storage_Detail
- Classname:MaterialMgmtStorageDetail
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. |
AllocatedQty | No | DECIMAL | From a Reservation, the quantity that it is already allocated, which means that the Reserved Stock already has an
Storage Bin and an Attribute values assigned to it |
M_AttributeSetInstance_ID | Yes | VARCHAR (32) | The values of the actual Product Attributes |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
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. |
DateLastInventory | Yes | TIMESTAMP (7) | The Date Last Inventory Count indicates the last time an Inventory count was done. |
M_Storage_Detail_ID | No | VARCHAR (32) | The Storage Detail identifies a stock in the warehouse by quantity, attributes and storage bin. |
QtyOrderOnHand | Yes | DECIMAL | The On Hand Quantity indicates the quantity of a product that is on hand in a warehouse in the second uom |
M_Product_Uom_Id | Yes | VARCHAR (32) | Alternative order UOM for the product. |
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. |
PreQtyOrderOnHand | Yes | DECIMAL | The quantity that we have already purchased but are not still in the warehouse in the second uom |
PreQtyOnHand | Yes | DECIMAL | The quantity that we have already purchased but are not still in the warehouse |
QtyOnHand | No | DECIMAL | The On Hand Quantity indicates the quantity of a product that is on hand in a warehouse. |
M_RefInventory_ID | Yes | VARCHAR (32) | ID for a Referenced Inventory |
ReservedQty | No | DECIMAL | Represents the total quantity reserved to fulfill the reservation. It cannot be higher than the pending quantity. |
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. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
AllocatedQuantity
- Physical column name: AllocatedQty
- Property Name: allocatedQuantity
- Reference: Quantity
- Default value: 0
Attribute Set Value
- Physical column name: M_AttributeSetInstance_ID
- Property Name: attributeSetValue
- Reference: PAttribute
- Default value: 0
Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_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
Last Inventory Count Date
- Physical column name: DateLastInventory
- Property Name: lastInventoryCountDate
- Reference: Date
M_Storage_Detail_ID
- Physical column name: M_Storage_Detail_ID
- Property Name: id
- Reference: ID
On Hand Order Quanity
- Physical column name: QtyOrderOnHand
- Property Name: onHandOrderQuanity
- Reference: Quantity
Order UOM
- Physical column name: M_Product_Uom_Id
- Property Name: orderUOM
- Reference: TableDir
Foreign key column to M_Product_UOM table, (column: M_Product_Uom_Id)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
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
Foreign key column to M_Product table, (column: M_Product_ID)
Quantity Order in draft transactions
- Physical column name: PreQtyOrderOnHand
- Property Name: quantityOrderInDraftTransactions
- Reference: Quantity
Quantity in draft transactions
- Physical column name: PreQtyOnHand
- Property Name: quantityInDraftTransactions
- Reference: Quantity
Quantity on Hand
- Physical column name: QtyOnHand
- Property Name: quantityOnHand
- Reference: Quantity
Referenced Inventory
- Physical column name: M_RefInventory_ID
- Property Name: referencedInventory
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to M_RefInventory table, (column: M_RefInventory_ID)
Reserved Qty
- Physical column name: ReservedQty
- Property Name: reservedQty
- Reference: Quantity
- Default value: 0
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: OBUISEL_Selector Reference
- This column is part of the table's identifier
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)
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_STORAGE_DETAIL_LOCATOR Not Unique. Columns:
- M_LOCATOR_ID
- M_STORAGE_DETAIL_PRODUCT Not Unique. Columns:
- M_PRODUCT_ID
- M_STORAGE_DETAIL_UOM Not Unique. Columns:
- C_UOM_ID
- M_STORAGEDET_QTYONHAND Not Unique. Columns:
- QTYONHAND
- M_STORAGEDET_QTYORDERONHAND Not Unique. Columns:
- QTYORDERONHAND
- M_STORAGEDET_REFINVENTORY Not Unique. Columns:
- M_REFINVENTORY_ID
Check Constraints
These are the check constraints for this table:
- M_STORAGE_DETAIL_CHECK1: QTYORDERONHAND IS NULL AND M_PRODUCT_UOM_ID IS NULL AND PREQTYORDERONHAND IS NULL OR QTYORDERONHAND IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL AND PREQTYORDERONHAND IS NOT NULL