Allowed logic for reprint in test certificate
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 4m26s
Laravel Larastan / larastan (pull_request) Failing after 5m51s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 4m26s
Laravel Larastan / larastan (pull_request) Failing after 5m51s
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