From f00b9c0d5764b14be8714731969a341761cd2686 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 16 Oct 2026 11:44:02 +0530 Subject: [PATCH] Added notification in bulk sticker prinitng page --- app/Filament/Pages/BulkStickerPrinting.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Filament/Pages/BulkStickerPrinting.php b/app/Filament/Pages/BulkStickerPrinting.php index 6ce702ff..eba1f686 100644 --- a/app/Filament/Pages/BulkStickerPrinting.php +++ b/app/Filament/Pages/BulkStickerPrinting.php @@ -1022,6 +1022,15 @@ class BulkStickerPrinting extends Page implements HasForms } } + if ((string) $matchedMachineId != (string) $machineId) { + Notification::make() + ->danger() + ->title('Machine Not Found') + ->body("Machine '{$machineId}' is not mapped for Item Code '{$itemCode}' against sticker '$stickerId' in sticker mapping master.") + ->send(); + + return; + } // $matchedMachineId = StickerMappingMaster::where('plant_id', $plantId)->where('item_id', $pOrderExist->item_id)->where('sticker_structure1_id', $structure->id)->where('sticker1_machine_id', $machineId)->first(); -- 2.49.1