diff --git a/app/Filament/Resources/AsrsItemValidationResource.php b/app/Filament/Resources/AsrsItemValidationResource.php index 7cf5938..ecd65a6 100644 --- a/app/Filament/Resources/AsrsItemValidationResource.php +++ b/app/Filament/Resources/AsrsItemValidationResource.php @@ -248,7 +248,7 @@ class AsrsItemValidationResource extends Resource ->toArray(); }) ->afterStateUpdated(function ($state, callable $set, callable $get) { - $set('Rework', null); + $set('uom', null); }), TextInput::make('uom') ->label('UOM') @@ -269,9 +269,6 @@ class AsrsItemValidationResource extends Resource 'Updated' => 'Updated', 'NotUpdated' => 'Not Updated', ]; - }) - ->afterStateUpdated(function ($state, callable $set, callable $get) { - $set('Rework', null); }), DateTimePicker::make('created_from') ->label('Created From') @@ -352,13 +349,14 @@ class AsrsItemValidationResource extends Resource if (! empty($data['Plant'])) { $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'])) { $indicators[] = 'Item Code: '.$data['item_code'];