Updated scrap_quantity as '0' when rework_status is 'No'
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 23s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Successful in 2m52s
Laravel Larastan / larastan (pull_request) Failing after 3m46s

This commit is contained in:
dhanabalan
2026-02-21 18:50:58 +05:30
parent c3d4a97277
commit 81d2f4bd2c

View File

@@ -458,9 +458,9 @@ class ProcessOrderResource extends Resource
->options([0 => 'No', 1 => 'Yes']) ->options([0 => 'No', 1 => 'Yes'])
->reactive() ->reactive()
->afterStateUpdated(function (callable $set, callable $get, ?string $state) { ->afterStateUpdated(function (callable $set, callable $get, ?string $state) {
// if ($get('id') && $get('rework_status') == 1) { if ($state == 0) {
// $set('rework_status', 1); $set('scrap_quantity', '0');
// } }
$set('updated_by', Filament::auth()->user()?->name); $set('updated_by', Filament::auth()->user()?->name);
}) })
->rule(function (callable $get, callable $set) { ->rule(function (callable $get, callable $set) {