Removed duplicate validation in bulk sticker printing #1014
@@ -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) {
|
// if ($updatePrintStatusCompleted) {
|
||||||
Notification::make()
|
// Notification::make()
|
||||||
->danger()
|
// ->danger()
|
||||||
->title('Duplicate Sticker')
|
// ->title('Duplicate Sticker')
|
||||||
->body("Already Sticker generated successfully for Production Order '$pOrder' and plant '$plantName'.")
|
// ->body("Already Sticker generated successfully for Production Order '$pOrder' and plant '$plantName'.")
|
||||||
->send();
|
// ->send();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
$structure = StickerStructureDetail::where('sticker_id',$stickerId)->first();
|
$structure = StickerStructureDetail::where('sticker_id',$stickerId)->first();
|
||||||
|
|||||||
Reference in New Issue
Block a user