ERP/3.0/Developers Guide/Database Model/org.openbravo.model.manufacturing.maintenance/MA Maint Scheduled
MA_Maint_Scheduled
- Name:MA_Maint_Scheduled
- Classname:ManufacturingMaintenanceSchedule
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. |
Observation | Yes | NVARCHAR (255) | Observations occurred during the process or operation. |
Confirmed | No | CHAR (1) | Indicates that the maintenance schedule has been confirmed. |
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. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
M_Internal_Consumption_ID | Yes | VARCHAR (32) | Identifies an internal consumption of products. |
MA_Machine_ID | Yes | VARCHAR (32) | Indicates a machine of the enterprise. |
MA_Machine_Type_ID | Yes | VARCHAR (32) | Identifies a machine category. |
MA_Maintenance_ID | Yes | VARCHAR (32) | Identifies a maintenance of a machine or machine category. |
MA_Maint_Part_ID | Yes | VARCHAR (32) | Identifies a maintenance part. |
MA_Maint_Operation_ID | Yes | VARCHAR (32) | Identifies a maintenance operation. |
Maintenance_Type | No | VARCHAR (60) | Sets the maintenance type, available options are corrective, corrective (urgent) and preventive. |
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. |
Scheduleddate | Yes | TIMESTAMP (7) | Scheduled date. |
Result | No | CHAR (1) | The Result indicates the result of any action taken on this request. |
MA_Maint_Scheduled_ID | No | VARCHAR (32) | Identifies a scheduled maintenance. |
Shift | Yes | VARCHAR (60) | Indicates the shift when the group is going to be measured. Available options are morning and swing shift |
Usedtime | Yes | DECIMAL | Used time in hours. |
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)
Comments
- Physical column name: Observation
- Property Name: comments
- Reference: Text
Confirmation
- Physical column name: Confirmed
- Property Name: confirmation
- Reference: YesNo
- Default value: N
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
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Internal Consumption
- Physical column name: M_Internal_Consumption_ID
- Property Name: internalConsumption
- Reference: TableDir
Foreign key column to M_Internal_Consumption table, (column: M_Internal_Consumption_ID)
Machine
- Physical column name: MA_Machine_ID
- Property Name: machine
- Reference: TableDir
Foreign key column to MA_Machine table, (column: MA_Machine_ID)
It has a validation "MA_Scheduled_Maintenance MachineType", with the following code
COALESCE(MA_Machine.MA_Machine_Type_ID,'-1') = COALESCE(@MA_Machine_Type_ID@, COALESCE(MA_Machine.MA_Machine_Type_ID,'-1'))
Machine Category
- Physical column name: MA_Machine_Type_ID
- Property Name: machineCategory
- Reference: TableDir
Foreign key column to MA_Machine_Type table, (column: MA_Machine_Type_ID)
Maintenance
- Physical column name: MA_Maintenance_ID
- Property Name: maintenance
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to MA_Maintenance table, (column: MA_Maintenance_ID)
Callout: SL_ScheduledMaintenance_Maintenance
This column has a callout associated.
It is implemented by [1] Java Class.
Maintenance Order
- Physical column name: MA_Maint_Part_ID
- Property Name: maintenanceOrder
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to MA_Maint_Part table, (column: MA_Maint_Part_ID)
Maintenance Task
- Physical column name: MA_Maint_Operation_ID
- Property Name: maintenanceTask
- Reference: TableDir
Foreign key column to MA_Maint_Operation table, (column: MA_Maint_Operation_ID)
Maintenance Type
- Physical column name: Maintenance_Type
- Property Name: maintenanceType
- Reference: List
List values: Maintenance type
The allowed values for this list are:
- P (Preventive)
- C (corrective): Corrective
- U (Corrective (urgent))
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Planned Date
- Physical column name: Scheduleddate
- Property Name: plannedDate
- Reference: Date
- This column is part of the table's identifier
Result
- Physical column name: Result
- Property Name: result
- Reference: YesNo
- Default value: N
Scheduled Maintenance
- Physical column name: MA_Maint_Scheduled_ID
- Property Name: id
- Reference: ID
Shift
- Physical column name: Shift
- Property Name: shift
- Reference: List
List values: Shift
The allowed values for this list are:
- M (Morning shift)
- T (Swing shift)
Time Used
- Physical column name: Usedtime
- Property Name: timeUsed
- Reference: Number
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_MAINTSCD_MAINTPART_IDX Not Unique. Columns:
- MA_MAINT_PART_ID
Check Constraints
These are the check constraints for this table:
- MA_MAINT_SCHEDU_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')