removed plant indicator logic in asrs
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-30 17:12:34 +05:30
parent 693c203001
commit 3b44cce762

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