ERP/3.0/Developers Guide/Database Model/org.openbravo.model.manufacturing.transaction/MA WorkRequirement
MA_WorkRequirement
- Name:MA_WorkRequirement
- Classname:ManufacturingWorkRequirement
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. |
Closed | No | CHAR (1) | Indicates if the work requirement phase has been completely done. |
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 |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Createworkrequirement | Yes | CHAR (1) | Create all Work Effort for a specific day |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
DocumentNo | No | NVARCHAR (30) | 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). |
C_Doctype_ID | Yes | VARCHAR (32) | The Document Type determines document sequence and processing rules |
EndDate | No | TIMESTAMP (7) | The End Date indicates the last date in this range. |
Estimatedtime | No | DECIMAL | Estimated time for the operation |
Explodephases | No | CHAR (1) | Indicates if the work requirement operations will be generated automatically. |
Explote | Yes | CHAR (1) | Process to explode the phases and/or insert the correspondent products to them. |
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. |
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. |
MA_Processplan_ID | No | VARCHAR (32) | Indicates a process plan. |
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. |
Quantity | No | DECIMAL | Indicates the quantity of product needed to process one time the sequence. |
Runtime | No | DECIMAL | Operation run time |
StartDate | No | TIMESTAMP (7) | A parameter stating when a specified request will begin. |
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. |
Launchdate | No | TIMESTAMP (7) | Indicates the date that the work requirement came in. |
MA_Workrequirement_ID | No | VARCHAR (32) | Indicates a work requirement. |
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)
Closed
- Physical column name: Closed
- Property Name: closed
- Reference: Button
- Default value: N
Conversion Rate
- Physical column name: Conversionrate
- Property Name: conversionRate
- Reference: Number
Callout: SL_WorkRequirement_Conversion
This column has a callout associated.
It is implemented by [1] Java Class.
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Createworkrequirement
- Physical column name: Createworkrequirement
- Property Name: createworkrequirement
- Reference: Button
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Type
- Physical column name: C_Doctype_ID
- Property Name: documentType
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
It has a validation "C_DocType Work Requirement", with the following code
C_DocType.DocBaseType='WRE'
Ending Date
- Physical column name: EndDate
- Property Name: endingDate
- Reference: Date
Estimated Time
- Physical column name: Estimatedtime
- Property Name: estimatedTime
- Reference: Number
- Default value: 0
Include Phases when inserting
- Physical column name: Explodephases
- Property Name: includePhasesWhenInserting
- Reference: YesNo
- Default value: Y
Insert Products and/or Phases
- Physical column name: Explote
- Property Name: insertProductsAndorPhases
- Reference: Button
Name
- Physical column name: Name
- Property Name: name
- Reference: String
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
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 column has a callout associated.
It is implemented by [2] Java Class.
Process Quantity
- Physical column name: Secondaryqty
- Property Name: processQuantity
- Reference: Quantity
Callout: SL_WorkRequirement_Conversion
This column has a callout associated.
It is implemented by [3] Java Class.
Process Unit
- Physical column name: Secondaryunit
- Property Name: processUnit
- Reference: String
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Quantity
- Physical column name: Quantity
- Property Name: quantity
- Reference: Quantity
Run time
- Physical column name: Runtime
- Property Name: runTime
- Reference: Number
- Default value: 0
Starting Date
- Physical column name: StartDate
- Property Name: startingDate
- Reference: Date
- This column is part of the table's identifier
Callout: SL_WorkRequirement_StartDate
This column has a callout associated.
It is implemented by [4] Java Class.
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 Creation Date
- Physical column name: Launchdate
- Property Name: wRCreationDate
- Reference: Date
- Default value: SYSDATE
Work Requirement
- Physical column name: MA_Workrequirement_ID
- Property Name: id
- Reference: ID
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')