ERP/3.0/Developers Guide/Database Model/org.openbravo.model.manufacturing.transaction/MA WRPhaseProduct
MA_WRPhaseProduct
- Name:MA_WRPhaseProduct
- Classname:ManufacturingWorkRequirementProduct
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. |
Componentcost | Yes | DECIMAL | Cost per component |
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. |
MovementQty | No | DECIMAL | The Movement Quantity indicates the quantity of a product that has been moved. |
Name | Yes | NVARCHAR (60) | 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. |
QuantityOrder | Yes | DECIMAL |
Product quantity in the order 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. |
Productiontype | No | VARCHAR (60) | Indicates if the product is used in the sequence or is generated. A positive production means that is an output product. So a negative productions refers to an input product. |
MA_Sequenceproduct_ID | Yes | VARCHAR (32) | Indicates each product involved on a sequence. |
C_UOM_ID | Yes | 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. |
MA_Wrphase_ID | No | VARCHAR (32) | Indicates a Work Requirement Phase. |
MA_Wrphaseproduct_ID | No | VARCHAR (32) | Indicates each product involved in the work requirement phase. |
M_Warehouse_Rule_ID | Yes | VARCHAR (32) | Definition of a Warehouse Rule to be applied when getting stock from the warehouse. |
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)
Component Cost
- Physical column name: Componentcost
- Property Name: componentCost
- Reference: Number
- Default value: 1
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
Movement Quantity
- Physical column name: MovementQty
- Property Name: movementQuantity
- Reference: Quantity
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Order Quantity
- Physical column name: QuantityOrder
- Property Name: orderQuantity
- Reference: Quantity
Callout: SL_Production_Conversion
This column has a callout associated.
It is implemented by [1] Java Class.
Order UOM
- Physical column name: M_Product_Uom_Id
- Property Name: orderUOM
- Reference: Table
Foreign key column to M_Product_UOM table, (column: M_Product_Uom_Id)
Callout: SL_Production_Conversion
This column has a callout associated.
It is implemented by [2] Java Class.
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)
It has a validation "M_Product Production", with the following code
M_Product.Production = 'Y'
Callout: SL_WRPhaseProduct_Product
This column has a callout associated.
It is implemented by [3] Java Class.
Production Type
- Physical column name: Productiontype
- Property Name: productionType
- Reference: List
- This column is part of the table's identifier
List values: Production Type
The allowed values for this list are:
- + (Product Production (P+)): Positive production, the product is produced
- - (Product use (P-)): Negative production, product is comsumed
- N (Non stocked product)
Sequence Product
- Physical column name: MA_Sequenceproduct_ID
- Property Name: sequenceProduct
- Reference: TableDir
Foreign key column to MA_SequenceProduct table, (column: MA_Sequenceproduct_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)
WR Phase
- Physical column name: MA_Wrphase_ID
- Property Name: wRPhase
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to MA_WRPhase table, (column: MA_Wrphase_ID)
WR Product Phase
- Physical column name: MA_Wrphaseproduct_ID
- Property Name: id
- Reference: ID
Warehouse Rule
- Physical column name: M_Warehouse_Rule_ID
- Property Name: warehouseRule
- Reference: TableDir
Foreign key column to M_Warehouse_Rule table, (column: M_Warehouse_Rule_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):
- MA_WRPHASEPRODUCT_PROD_PHASE Not Unique. Columns:
- M_PRODUCT_ID
- MA_WRPHASE_ID
- MA_WRPHASEPRODUCT_WRPHASE_IDX Not Unique. Columns:
- MA_WRPHASE_ID
Check Constraints
These are the check constraints for this table:
- MA_WRPHASEPRODUCT_CHECK1: QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL OR QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL
- MA_WRPHASEPRODUCT_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- MA_WRPHASEPRODUCT_PRODUCTI_CHK: PRODUCTIONTYPE IN ('+', '-')