removed plant indicator logic in asrs #678
@@ -248,7 +248,7 @@ class AsrsItemValidationResource extends Resource
|
|||||||
->toArray();
|
->toArray();
|
||||||
})
|
})
|
||||||
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
||||||
$set('Rework', null);
|
$set('uom', null);
|
||||||
}),
|
}),
|
||||||
TextInput::make('uom')
|
TextInput::make('uom')
|
||||||
->label('UOM')
|
->label('UOM')
|
||||||
@@ -269,9 +269,6 @@ class AsrsItemValidationResource extends Resource
|
|||||||
'Updated' => 'Updated',
|
'Updated' => 'Updated',
|
||||||
'NotUpdated' => 'Not Updated',
|
'NotUpdated' => 'Not Updated',
|
||||||
];
|
];
|
||||||
})
|
|
||||||
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
|
||||||
$set('Rework', null);
|
|
||||||
}),
|
}),
|
||||||
DateTimePicker::make('created_from')
|
DateTimePicker::make('created_from')
|
||||||
->label('Created From')
|
->label('Created From')
|
||||||
@@ -352,13 +349,14 @@ class AsrsItemValidationResource extends Resource
|
|||||||
|
|
||||||
if (! empty($data['Plant'])) {
|
if (! empty($data['Plant'])) {
|
||||||
$indicators[] = 'Plant Name: '.Plant::where('id', $data['Plant'])->value('name');
|
$indicators[] = 'Plant Name: '.Plant::where('id', $data['Plant'])->value('name');
|
||||||
} else {
|
|
||||||
$userHas = Filament::auth()->user()->plant_id;
|
|
||||||
|
|
||||||
if ($userHas && strlen($userHas) > 0) {
|
|
||||||
return 'Plant Name: Choose plant to filter records.';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
//else {
|
||||||
|
// $userHas = Filament::auth()->user()->plant_id;
|
||||||
|
|
||||||
|
// if ($userHas && strlen($userHas) > 0) {
|
||||||
|
// return 'Plant Name: Choose plant to filter records.';
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
if (! empty($data['item_code'])) {
|
if (! empty($data['item_code'])) {
|
||||||
$indicators[] = 'Item Code: '.$data['item_code'];
|
$indicators[] = 'Item Code: '.$data['item_code'];
|
||||||
|
|||||||
Reference in New Issue
Block a user