Merge pull request 'Removed duplicate validation in bulk sticker printing' (#1014) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Reviewed-on: #1014
This commit was merged in pull request #1014.
This commit is contained in:
@@ -879,16 +879,16 @@ class BulkStickerPrinting extends Page implements HasForms
|
||||
}
|
||||
}
|
||||
|
||||
$updatePrintStatusCompleted = ProductionOrder::where('plant_id', $plantId)->where('production_order', $pOrder)->where('from_serial_number', $fromSerNo)->where('to_serial_number', $toSerNo)->where('print_status', 'Printed')->first();
|
||||
// $updatePrintStatusCompleted = ProductionOrder::where('plant_id', $plantId)->where('production_order', $pOrder)->where('from_serial_number', $fromSerNo)->where('to_serial_number', $toSerNo)->where('print_status', 'Printed')->first();
|
||||
|
||||
if ($updatePrintStatusCompleted) {
|
||||
Notification::make()
|
||||
->danger()
|
||||
->title('Duplicate Sticker')
|
||||
->body("Already Sticker generated successfully for Production Order '$pOrder' and plant '$plantName'.")
|
||||
->send();
|
||||
return;
|
||||
}
|
||||
// if ($updatePrintStatusCompleted) {
|
||||
// Notification::make()
|
||||
// ->danger()
|
||||
// ->title('Duplicate Sticker')
|
||||
// ->body("Already Sticker generated successfully for Production Order '$pOrder' and plant '$plantName'.")
|
||||
// ->send();
|
||||
// return;
|
||||
// }
|
||||
|
||||
|
||||
$structure = StickerStructureDetail::where('sticker_id',$stickerId)->first();
|
||||
|
||||
Reference in New Issue
Block a user