Merge pull request 'removed plant indicator logic in asrs' (#678) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #678
This commit was merged in pull request #678.
This commit is contained in:
2026-05-30 11:42:47 +00:00

View File

@@ -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'];