Allowed logic for reprint in test certificate #1601
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user