Merge pull request 'Allowed logic for reprint in test certificate' (#1601) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 43s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 43s
Reviewed-on: #1601
This commit was merged in pull request #1601.
This commit is contained in:
@@ -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