ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M ProductionPlan
M_ProductionPlan
- Name:M_ProductionPlan
- Classname:MaterialMgmtProductionPlan
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. |
Closephase | No | CHAR (1) | If is checked the work requirement phase will be closed when the work effort is validated |
Conversionrate | Yes | DECIMAL | Defines how many final products each run of a process plan produces. See the following formula to understand the relation between the three elements:
Process Quantity = Quantity x Conversion Rate |
MA_Costcenteruse | No | DECIMAL | Use of the cost center. |
MA_Costcenter_Version_ID | Yes | VARCHAR (32) | Identifies a cost center version valid during a time period. |
Usedmaterial | Yes | CHAR (1) | Process to generate standards on production run. |
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. |
Endtime | Yes | TIMESTAMP (7) | End time in hours. |
Calccost | Yes | DECIMAL | Is the calculated cost amount. |
Estimatedtime | No | DECIMAL | Estimated time for the operation |
Line | No | DECIMAL (10,0) | Indicates the unique line for a document. It will also control the display order of the lines within a document. |
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. |
Outsourced | Yes | CHAR (1) | Indicates that the correspondent process is being outsourced for the sequence, work requirement phase or production run. |
Secondaryqty | Yes | DECIMAL (10,0) | The number of Process Units required to be produced. Usually when it comes to production, our requirements are specified by a number of final products (Process Units). To avoid the need for calculating the number of process plan runs, the system allows for entering this number and then automatically calculating the required process plan runs. |
Secondaryunit | Yes | NVARCHAR (40) | The name of the main final product obtained by executing a process plan. |
Processed | Yes | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
M_Production_ID | No | VARCHAR (32) | The Production uniquely identifies a Production Plan |
M_ProductionPlan_ID | No | VARCHAR (32) | The Production Plan identifies the items and steps in generating a product. |
ProductionQty | No | DECIMAL | The Production Quantity identifies the number of products to produce |
Productionplandate | Yes | TIMESTAMP (7) | |
Rejectedquantity | No | DECIMAL | How many products have been rejected. |
Neededquantity | No | DECIMAL | How many times it is necessary to complete a phase before closing it. |
Runtime | No | DECIMAL | Operation run time |
Starttime | Yes | TIMESTAMP (7) | Start time in hours. |
M_Locator_ID | Yes | VARCHAR (32) | The Locator ID indicates where in a Warehouse a product is located. |
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. |
Validating | Yes | CHAR (1) | Process to validate the work effort. |
MA_Wrphase_ID | No | VARCHAR (32) | Indicates a Work Requirement Phase. |
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)
Closephase
- Physical column name: Closephase
- Property Name: closephase
- Reference: YesNo
- Default value: N
Conversion Rate
- Physical column name: Conversionrate
- Property Name: conversionRate
- Reference: Number
Callout: SL_ProductionPlan_Conversion
This column has a callout associated.
It is implemented by [1] Java Class.
Cost Center Use
- Physical column name: MA_Costcenteruse
- Property Name: costCenterUse
- Reference: Number
Cost Center Version
- Physical column name: MA_Costcenter_Version_ID
- Property Name: costCenterVersion
- Reference: TableDir
Foreign key column to MA_Costcenter_Version table, (column: MA_Costcenter_Version_ID)
It has a validation "AD_Org any table by parent organization", with the following code
AD_ISORGINCLUDED(@AD_Org_ID@, td0.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Create Standards
- Physical column name: Usedmaterial
- Property Name: createStandards
- Reference: Button
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: Text
Ending Time
- Physical column name: Endtime
- Property Name: endingTime
- Reference: DateTime
Estimated Cost
- Physical column name: Calccost
- Property Name: estimatedCost
- Reference: Number
Estimated Time
- Physical column name: Estimatedtime
- Property Name: estimatedTime
- Reference: Number
- Default value: 0
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- 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)
It has a validation "AD_Org show child organizations", with the following code
AD_ISORGINCLUDED(ad_org.ad_org_id, CASE WHEN (@Parent_AD_Org@ IS NULL OR @Parent_AD_Org@ = ) THEN @AD_ORG_ID@ ELSE @Parent_AD_Org@ END, ad_org.ad_client_id)<>-1 AND IsReady='Y'
Outsourced
- Physical column name: Outsourced
- Property Name: outsourced
- Reference: YesNo
Process Quantity
- Physical column name: Secondaryqty
- Property Name: processQuantity
- Reference: Quantity
Callout: SL_ProductionPlan_Conversion
This column has a callout associated.
It is implemented by [2] Java Class.
Process Unit
- Physical column name: Secondaryunit
- Property Name: processUnit
- Reference: String
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Table
Foreign key column to M_Product table, (column: M_Product_ID)
It has a validation "M_BOM_ISVERIFIED", with the following code
M_PRODUCT.ISVERIFIED='Y'
Production
- Physical column name: M_Production_ID
- Property Name: production
- 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 M_Production table, (column: M_Production_ID)
Production Plan
- Physical column name: M_ProductionPlan_ID
- Property Name: id
- Reference: ID
Production Quantity
- Physical column name: ProductionQty
- Property Name: productionQuantity
- Reference: Quantity
- Default value: 0
Callout: SL_ProductionPlan_WRPhase_Quantity
This column has a callout associated.
It is implemented by [3] Java Class.
Productionplandate
- Physical column name: Productionplandate
- Property Name: productionplandate
- Reference: Date
Rejected Quantity
- Physical column name: Rejectedquantity
- Property Name: rejectedQuantity
- Reference: Quantity
Required Quantity
- Physical column name: Neededquantity
- Property Name: requiredQuantity
- Reference: Quantity
Run Time
- Physical column name: Runtime
- Property Name: runTime
- Reference: Integer
- Default value: 0
Starting Time
- Physical column name: Starttime
- Property Name: startingTime
- Reference: DateTime
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: Search
Foreign key column to M_Locator table, (column: M_Locator_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)
Validate Work Effort
- Physical column name: Validating
- Property Name: validateWorkEffort
- Reference: Button
WR Phase
- Physical column name: MA_Wrphase_ID
- Property Name: wRPhase
- Reference: TableDir
Foreign key column to MA_WRPhase table, (column: MA_Wrphase_ID)
It has a validation "MA_ProductionRun_WRPhase", with the following code
MA_WRPhase.Closed = 'N'
AND MA_WRPhase.AD_Org_ID = @AD_Org_Forced@
Callout: SL_ProductionPlan_WRPhase
This column has a callout associated.
It is implemented by [4] Java Class.
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_PRODUCTIONPLAN_PRODUCTION Not Unique. Columns:
- M_PRODUCTION_ID
Check Constraints
These are the check constraints for this table:
- M_PRODUCTIONPLAN_CLOPHASE_CHK: CLOSEPHASE IN ('Y', 'N')
- M_PRODUCTIONPLAN_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- M_PRODUCTIONPLAN_OUTSOURCE_CHK: OUTSOURCED IN ('Y', 'N')