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
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user