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) {