ERP 2.50:Developers Guide/Database Model/org.openbravo.model.mrp/MRP Run PurchaseLine
MRP_Run_PurchaseLine
Lines of the purchase planning processes.
- Name:MRPPurchasingRunLine
- Classname:PurchasingRunLine
This table contains the following columns:
Name | Nullable | Data Type | Description |
MRP_Run_Purchaseline_ID | N | VARCHAR2(32) | null |
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 |
MRP_Run_Purchase_ID | N | VARCHAR2(32) | null |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
Qty | N | NUMBER | The number of a certain item. |
Neededqty | N | NUMBER | null |
Planneddate | N | DATE | The date when a transaction will occur. |
Inouttrxtype | N | VARCHAR2(60) | A distinct set of characteristics or processes. |
Isfixed | N | CHAR(1) | A means of locking the header tab so it will not be affected if a specified process is run again. |
C_OrderLine_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for an order line. |
MA_Workrequirement_ID | Y | VARCHAR2(32) | An order authorizing the production of a specific product and product quantity. |
MRP_Salesforecastline_ID | Y | VARCHAR2(32) | null |
M_Requisitionline_ID | Y | VARCHAR2(32) | null |
Iscompleted | Y | CHAR(1) | null |
Plannedorderdate | Y | DATE | null |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
Cumqty | Y | NUMBER | The final quantity to be moved based on the related business process. |
Other Info
Check constraints
These are the check constraints for this table:
- MRP_RUN_PURCHASELINE_ISACT_CHK: ISACTIVE IN ('Y', 'N')
- MRP_RUN_PURCHASELINE_ISFIX_CHK: ISFIXED 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
- MRP_RUN_PURCHLINE_PURCHASE_ID
- MRP_RUN_PURHCLINE_PURCH_PROD
Unique
- MRP_RUN_PURCHASELINE_KEY
Columns
Purchase Plan Line
Identifies a line of the purchase planning processes.
- Physical column name: MRP_Run_Purchaseline_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)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
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)
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
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
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
- 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)
Purchasing Plan
- Physical column name: MRP_Run_Purchase_ID
- Property Name: purchasingPlan
- 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 MRP_Run_Purchase table, (column: MRP_Run_Purchase_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
The Quantity indicates the number of a specific product or item for this document.
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Required Quantity
Quantity needed
- Physical column name: Neededqty
- Property Name: requiredQuantity
- Reference: Quantity
Planned Date
Planned date of the transaction.
- Physical column name: Planneddate
- Property Name: plannedDate
- Reference: Date
Transaction Type
Transaction types available for the MRP.
- Physical column name: Inouttrxtype
- Property Name: transactionType
- Reference: List
List values: In/out transaction types for planning
The allowed values for this list are:
- MF (Material Requirement)
- MP (Suggested Material Requirement)
- MS (Minimum Stock): Minimum or security stock
- PO (Pending Purchase Order)
- PP (Suggested Purchase Order)
- SF (Sales Forecast)
- SO (Pending Sales Order)
- ST (Stock)
- UD (User defined)
- WP (Suggested Work Requirement)
- WR (Pending Work Requirement)
Fixed
Is fixed
- Physical column name: Isfixed
- Property Name: fixed
- Reference: YesNo
- Default value: N
Order Line
A unique identifier and a reference to an order line (product).
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: TableDir
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Work Requirement
- Physical column name: MA_Workrequirement_ID
- Property Name: workRequirement
- Reference: TableDir
Foreign key column to MA_Workrequirement table, (column: MA_Workrequirement_ID)
Sales Forecast Line
- Physical column name: MRP_Salesforecastline_ID
- Property Name: salesForecastLine
- Reference: TableDir
Foreign key column to MRP_Salesforecastline table, (column: MRP_Salesforecastline_ID)
Requisition Line
- Physical column name: M_Requisitionline_ID
- Property Name: requisitionLine
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to M_Requisitionline table, (column: M_Requisitionline_ID)
Completed
Line completed
- Physical column name: Iscompleted
- Property Name: completed
- Reference: YesNo
Planned Order Date
Planned date to order the transaction.
- Physical column name: Plannedorderdate
- Property Name: plannedOrderDate
- Reference: Date
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Total Movement Quantity
Cumulate quantity.
- Physical column name: Cumqty
- Property Name: totalMovementQuantity
- Reference: Quantity