Allowed logic for reprint in test certificate #1601

Merged
jothi merged 1 commits from ranjith-dev into master 2026-12-03 11:28:39 +00:00
Showing only changes of commit 735caa190a - Show all commits

View File

@@ -1128,13 +1128,8 @@ class TestCertificate extends Page implements HasForms
->first();
if ($existingSticker) {
Notification::make()
->danger()
->title('Duplicate Test Certificate')
->body("Serial Number '$fromSerNo' or '$toSerNo' already exists in a generated Test Certificate '$stickerId' for Production Order '$pOrder' and plant '$plantName'.")
->send();
return;
$existingSticker->reprint_count = ($existingSticker->reprint_count ?? 0) + 1;
$existingSticker->save();
}
$structure = StickerStructureDetail::where('sticker_id',$stickerId)->first();