Added migration, model, resource, importer, and exporter files for add stop_flow_id columns and remove stopped columns
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
This commit is contained in:
@@ -311,13 +311,13 @@ class ClassCharacteristicExporter extends Exporter
|
||||
->label('ZMM OPERATING TEMPERATURE'),
|
||||
ExportColumn::make('zmm_axial_force')
|
||||
->label('ZMM AXIAL FORCE'),
|
||||
ExportColumn::make('is_stopped')
|
||||
->label('IS STOPPED')
|
||||
->formatStateUsing(fn ($state) => ($state == '0') ? 'No' : ($state == '1' ? 'Yes' : 'Yes (Alert Pending)')),
|
||||
ExportColumn::make('stopped_datetime')
|
||||
->label('STOPPED DATETIME'),
|
||||
ExportColumn::make('stopped_by')
|
||||
->label('STOPPED BY'),
|
||||
// ExportColumn::make('is_stopped')
|
||||
// ->label('IS STOPPED')
|
||||
// ->formatStateUsing(fn ($state) => ($state == '0') ? 'No' : ($state == '1' ? 'Yes' : 'Yes (Alert Pending)')),
|
||||
// ExportColumn::make('stopped_datetime')
|
||||
// ->label('STOPPED DATETIME'),
|
||||
// ExportColumn::make('stopped_by')
|
||||
// ->label('STOPPED BY'),
|
||||
ExportColumn::make('mark_status')
|
||||
->label('MARKED STATUS'),
|
||||
ExportColumn::make('marked_physical_count')
|
||||
@@ -363,7 +363,14 @@ class ClassCharacteristicExporter extends Exporter
|
||||
ExportColumn::make('name_plate_marked_by')
|
||||
->label('NAME PLATE MARKED BY'),
|
||||
ExportColumn::make('motor_pump_pumpset_status')
|
||||
->label('MOTOR PUMP PUMPSET STATUS'),
|
||||
->label('MOTOR PUMP PUMPSET STATUS')
|
||||
->formatStateUsing(fn ($state): string => match ((string) $state) {
|
||||
'1' => 'Motor',
|
||||
'2' => 'Pump',
|
||||
'3' => 'PumpSet',
|
||||
'4' => 'Name Plate',
|
||||
default => 'NIL',
|
||||
}),
|
||||
ExportColumn::make('winded_serial_number')
|
||||
->label('WINDED SERIAL NUMBER'),
|
||||
ExportColumn::make('winded_rework_status')
|
||||
@@ -386,6 +393,36 @@ class ClassCharacteristicExporter extends Exporter
|
||||
->label('PENDING RELEASED STATUS'),
|
||||
ExportColumn::make('has_work_flow_id')
|
||||
->label('HAS WORK FLOW ID'),
|
||||
ExportColumn::make('motor_stop_flow_id')
|
||||
->label('MOTOR STOP FLOW ID')
|
||||
->formatStateUsing(fn ($state): string => match ((string) $state) {
|
||||
'5' => 'NIL',
|
||||
'4' => 'Has Master',
|
||||
'3' => 'Make Alert',
|
||||
'2' => 'Alert Pending',
|
||||
'1' => 'Alert Approved',
|
||||
default => '-',
|
||||
}),
|
||||
ExportColumn::make('pump_stop_flow_id')
|
||||
->label('PUMP STOP FLOW ID')
|
||||
->formatStateUsing(fn ($state): string => match ((string) $state) {
|
||||
'5' => 'NIL',
|
||||
'4' => 'Has Master',
|
||||
'3' => 'Make Alert',
|
||||
'2' => 'Alert Pending',
|
||||
'1' => 'Alert Approved',
|
||||
default => '-',
|
||||
}),
|
||||
ExportColumn::make('name_plate_stop_flow_id')
|
||||
->label('NAME PLATE STOP FLOW ID')
|
||||
->formatStateUsing(fn ($state): string => match ((string) $state) {
|
||||
'5' => 'NIL',
|
||||
'4' => 'Has Master',
|
||||
'3' => 'Make Alert',
|
||||
'2' => 'Alert Pending',
|
||||
'1' => 'Alert Approved',
|
||||
default => '-',
|
||||
}),
|
||||
ExportColumn::make('created_at')
|
||||
->label('CREATED AT'),
|
||||
ExportColumn::make('created_by')
|
||||
|
||||
Reference in New Issue
Block a user