ERP 2.50:Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M ProductionPlan
M_ProductionPlan
Contains the items used and generated in a production
- Name:MaterialMgmtProductionPlan
- Classname:ProductionPlan
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_ProductionPlan_ID | N | VARCHAR2(32) | The proposal for a how production will be carried out. |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
M_Production_ID | N | VARCHAR2(32) | An indication that an item is being used in production. |
Line | N | NUMBER(10, 0) | A line stating the position of this request in the document. |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
ProductionQty | N | NUMBER | null |
M_Locator_ID | Y | VARCHAR2(32) | A set of coordinates (x, y, z) which help locate an item in a warehouse. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
Conversionrate | Y | NUMBER | Defines the conversion between Quantity and Process Quantity |
MA_Costcenteruse | Y | NUMBER | Cost Center Use |
MA_Wrphase_ID | Y | VARCHAR2(32) | null |
Neededquantity | Y | NUMBER | null |
Processed | Y | CHAR(1) | A confirmation that the associated documents or requests are processed. |
Rejectedquantity | Y | NUMBER | Rejected Quantity |
Secondaryqty | Y | NUMBER(10, 0) | The number of Process Units required to be produced. |
Secondaryunit | Y | NVARCHAR2(40) | The name of the main final product obtained by executing a process plan. |
Usedmaterial | Y | CHAR(1) | null |
Calccost | Y | NUMBER | A theoretically calculated cost associated with this specific tab. |
MA_Costcenter_Version_ID | Y | VARCHAR2(32) | The cost center being used during a specified time period. |
Outsourced | Y | CHAR(1) | A decision to have a task or phase completed by an external business partner. |
Other Info
Check constraints
These are the check constraints for this table:
- M_PRODUCTIONPLAN_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- M_PRODUCTIONPLAN_OUTSOURCE_CHK: OUTSOURCED IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- M_PRODUCTIONPLAN_PRODUCTION
Unique
- M_PRODUCTIONPLAN_KEY
Columns
Production Plan
The Production Plan identifies the items and steps in generating a product.
- Physical column name: M_ProductionPlan_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Validation Rule AD_Org show child organizations: It only shows the child organizations of the organization's header. With the following code:
AD_ISORGINCLUDED(ad_org.ad_org_id, @AD_ORG_ID@, ad_org.ad_client_id)<>-1 AND IsReady='Y'
Active
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.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
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 buisiness object (is Parent)
Foreign key column to M_Production table, (column: M_Production_ID)
Line No.
Indicates the unique line for a document. It will also control the display order of the lines within a document.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM M_ProductionPlan WHERE M_Production_ID=@M_Production_ID@
- This column is part of the table's identifier
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Table
Foreign key column to M_Product table, (column: M_Product_ID)
Reference Table M_Product BOM (stocked) With the following where clause:
M_Product.IsBOM='Y' AND M_Product.IsStocked='Y'
Completed Quantity
Indicates how many times has been processed the work requirement phase.
- Physical column name: ProductionQty
- Property Name: productionQuantity
- Reference: Quantity
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: Search
- Default value: @M_Locator_ID@
Foreign key column to M_Locator table, (column: M_Locator_ID)
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Conversion Rate
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
- Physical column name: Conversionrate
- Property Name: conversionRate
- Reference: Number
Callout: SL_ProductionPlan_Conversion
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_ProductionPlan_Conversion Java class.
Cost Center Use
Use of the cost center.
- Physical column name: MA_Costcenteruse
- Property Name: costCenterUse
- Reference: Number
WR Phase
- Physical column name: MA_Wrphase_ID
- Property Name: wRPhase
- Reference: TableDir
Foreign key column to MA_Wrphase table, (column: MA_Wrphase_ID)
Validation Rule MA_ProductionRun_WRPhase: null. With the following code:
MA_WRPhase.Closed = 'N' AND MA_WRPhase.AD_Org_ID = @AD_Org_Forced@
Callout: SL_ProductionPlan_WRPhase
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_ProductionPlan_WRPhase Java class.
Required Quantity
How many times it is necessary to complete a phase before closing it.
- Physical column name: Neededquantity
- Property Name: requiredQuantity
- Reference: Integer
- Default value: @SQL=SELECT (QUANTITY - DONEQUANTITY) AS DefaultValue FROM MA_WRPhase WHERE MA_WRPhase_ID = @MA_WRPhase_ID@
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Rejected Quantity
How many products have been rejected.
- Physical column name: Rejectedquantity
- Property Name: rejectedQuantity
- Reference: Integer
Process Quantity
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.
- Physical column name: Secondaryqty
- Property Name: processQuantity
- Reference: Quantity
Callout: SL_ProductionPlan_Conversion
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_ProductionPlan_Conversion Java class.
Process Unit
The name of the main final product obtained by executing a process plan.
- Physical column name: Secondaryunit
- Property Name: processUnit
- Reference: String
Create Standards
Process to generate standards on production run.
- Physical column name: Usedmaterial
- Property Name: createStandards
- Reference: Button
Estimated Cost
Is the calculated cost amount.
- Physical column name: Calccost
- Property Name: estimatedCost
- 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)
Validation Rule AD_Org any table by parent organization: Filter a drop down to show only records of the organization or of parent organizations, based on the organization of the record that it is being edited.. With the following code:
AD_ISORGINCLUDED(@AD_Org_ID@, td0.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Outsourced
Indicates that the correspondent process is being outsourced for the sequence, work requirement phase or production run.
- Physical column name: Outsourced
- Property Name: outsourced
- Reference: YesNo