Added updated by column in reowrk logic #1540

Merged
jothi merged 1 commits from ranjith-dev into master 2026-11-27 02:18:44 +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) {