Removed duplicate validation in bulk sticker printing #1014

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-11 04:56:07 +00:00

View File

@@ -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();