ERP/3.0/Developers Guide/Database Model/org.openbravo.model.manufacturing.transaction/MA ToolsetUsed
Contents |
MA_ToolsetUsed
- Name:MA_ToolsetUsed
- Classname:ManufacturingProductionRunToolset
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. |
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. |
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. |
M_ProductionPlan_ID | No | VARCHAR (32) | The Production Plan identifies the items and steps in generating a product. |
MA_Toolset_ID | No | VARCHAR (32) | Toolset |
Used | No | DECIMAL | Number of uses of the toolset in the production run. |
MA_Toolsetused_ID | No | VARCHAR (32) | Indicates the toolsets used in the production run. |
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. |
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)
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
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Production Plan
- Physical column name: M_ProductionPlan_ID
- Property Name: productionPlan
- 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_ProductionPlan table, (column: M_ProductionPlan_ID)
Toolset
- Physical column name: MA_Toolset_ID
- Property Name: toolset
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to MA_Toolset table, (column: MA_Toolset_ID)
It has a validation "Not discarded toolsets in Work Effort", with the following code
MA_Toolset.Discarded = 'N'
AND MA_Toolset.MA_Toolset_Type_ID IN (SELECT MA_Toolset_Type_ID FROM MA_ToolsetProcess, MA_WRPhase, M_ProductionPlan WHERE M_ProductionPlan.M_ProductionPlan_ID = @M_ProductionPlan_ID@ AND M_ProductionPlan.MA_WRPhase_ID = MA_WRPhase.MA_WRPhase_ID AND MA_WRPhase.MA_Process_ID = MA_ToolsetProcess.MA_Process_ID)
Toolset Uses
- Physical column name: Used
- Property Name: toolsetUses
- Reference: Number
Toolsets Used
- Physical column name: MA_Toolsetused_ID
- Property Name: id
- Reference: 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)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- MA_TOOLSETUSED_PRODPLAN_IDX Not Unique. Columns:
- M_PRODUCTIONPLAN_ID
Check Constraints
These are the check constraints for this table:
- MA_TOOLSETUSED_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')