ERP/2.50/Developers Guide/Database Model/org.openbravo.model.manufacturing.transaction/MA WorkRequirement
MA_WorkRequirement
In this table it's defined the header of the requirement. here it's indicated for example the process plan.
- Name:ManufacturingWorkRequirement
- Classname:WorkRequirement
This table contains the following columns:
Name | Nullable | Data Type | Description |
MA_Workrequirement_ID | N | VARCHAR2(32) | An order authorizing the production of a specific product and product quantity. |
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 |
Name | Y | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
MA_Processplan_ID | N | VARCHAR2(32) | A guide stating how a certain item must move through the transformation process. |
Quantity | N | NUMBER | null |
Launchdate | N | DATE | null |
StartDate | N | DATE | A parameter stating when a specified request will begin. |
EndDate | N | DATE | A parameter stating when a specified request will end. |
Closed | N | CHAR(1) | null |
Explote | Y | CHAR(1) | null |
Processed | Y | CHAR(1) | The document has been processed |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
Explodephases | N | CHAR(1) | null |
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. |
Conversionrate | Y | NUMBER | Defines the conversion between Quantity and Process Quantity |
Other Info
Check constraints
These are the check constraints for this table:
- MA_WORKREQUIREMENT_CLOSED_CHK: CLOSED IN ('Y', 'N')
- MA_WORKREQUIREMENT_EXPLODE_CHK: EXPLODEPHASES IN ('Y', 'N')
- MA_WORKREQUIREMENT_ISACTIV_CHK: ISACTIVE IN ('Y', 'N')
- MA_WORKREQUIREMENT_PROCESS_CHK: PROCESSED 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):
Unique
- MA_WORKREQUIREMENT_KEY
Columns
Work Requirement
Indicates a work requirement.
- Physical column name: MA_Workrequirement_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)
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: @#Date@
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: @#Date@
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Name
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.
- Physical column name: Name
- Property Name: name
- Reference: String
Process Plan
- Physical column name: MA_Processplan_ID
- Property Name: processPlan
- Reference: TableDir
Foreign key column to MA_Processplan table, (column: MA_Processplan_ID)
Callout: SL_WorkRequirement_ProcessPlan
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_WorkRequirement_ProcessPlan Java class.
Quantity
Indicates the number of times the process plan needs to be executed.
- Physical column name: Quantity
- Property Name: quantity
- Reference: Quantity
WR Creation Date
Indicates the date that the work requirement came in.
- Physical column name: Launchdate
- Property Name: wRCreationDate
- Reference: Date
- Default value: @#Date@
Starting Date
A parameter stating when a specified request will begin.
- Physical column name: StartDate
- Property Name: startingDate
- Reference: Date
- This column is part of the table's identifier
Callout: SL_WorkRequirement_StartDate
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_WorkRequirement_StartDate Java class.
Ending Date
The End Date indicates the last date in this range.
- Physical column name: EndDate
- Property Name: endingDate
- Reference: Date
Closed
Indicates if the work requirement is completely done or if we don't want to continue with it.
- Physical column name: Closed
- Property Name: closed
- Reference: Button
- Default value: N
Process Work Requirement
By running this process the operations (activities) and products will be inserted automatically according to the selected process plan. Quantities will be multiplied according to the number of final products (Process Units) required. If the process plan selected does not have the "explodePhases" checked off, products from previously existing phases will be inserted only.
- Physical column name: Explote
- Property Name: insertProductsAndorPhases
- Reference: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Document No.
The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Include Phases when inserting
Indicates if the work requirement phases will be generated automatically.
- Physical column name: Explodephases
- Property Name: includePhasesWhenInserting
- Reference: YesNo
- Default value: Y
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_WorkRequirement_Conversion
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_WorkRequirement_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
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_WorkRequirement_Conversion
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_WorkRequirement_Conversion Java class.
Related tables
Tables that link this table: