From 4181bd031e1a2ac2c2b2abaaa201901d12fc1062 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 15 Oct 2026 13:26:52 +0530 Subject: [PATCH] changed logic in bulk sticker printing --- app/Filament/Pages/BulkStickerPrinting.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Filament/Pages/BulkStickerPrinting.php b/app/Filament/Pages/BulkStickerPrinting.php index 9d7331a5..c0693a69 100644 --- a/app/Filament/Pages/BulkStickerPrinting.php +++ b/app/Filament/Pages/BulkStickerPrinting.php @@ -1008,19 +1008,19 @@ class BulkStickerPrinting extends Page implements HasForms $matchedMachineId = null; - // for ($i = 1; $i <= 8; $i++) { + for ($i = 1; $i <= 8; $i++) { - // $machineColumn = "sticker{$i}_machine_id"; + $machineColumn = "sticker{$i}_machine_id"; - // if ((string) $stickerMappingMasterItem->{$machineColumn} == (string) $machineId) { + if ((string) $stickerMappingMasterItem->{$machineColumn} == (string) $machineId) { - // $matchedMachineId = $stickerMappingMasterItem->{$machineColumn}; + $matchedMachineId = $stickerMappingMasterItem->{$machineColumn}; - // break; - // } - // } + break; + } + } - $matchedMachineId = StickerMappingMaster::where('plant_id', $plantId)->where('item_id', $pOrderExist->item_id)->where('sticker_structure1_id', $structure->id)->where('sticker1_machine_id', $machineId)->first(); + // $matchedMachineId = StickerMappingMaster::where('plant_id', $plantId)->where('item_id', $pOrderExist->item_id)->where('sticker_structure1_id', $structure->id)->where('sticker1_machine_id', $machineId)->first(); if (!$matchedMachineId) { -- 2.49.1