Merge pull request 'Added updated by column in reowrk logic' (#1540) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 29s

Reviewed-on: #1540
This commit was merged in pull request #1540.
This commit is contained in:
2026-11-27 02:18:43 +00:00

View File

@@ -209,6 +209,7 @@ public $records = [];
}
if($latestReworkRecord){
$userName = Filament::auth()->user()?->name;
$reworkCount = $latestReworkRecord
? ((int) $latestReworkRecord->rework_count + 1)
@@ -217,6 +218,7 @@ public $records = [];
$latestReworkRecord->update([
'rework_count' => $reworkCount,
'status' => $this->selectForNotOk ? 'NotOk' : 'Ok',
'updated_by' => $userName,
]);
}
catch (\Illuminate\Database\QueryException $e) {