From 57b1ec5b822606d9575b6e166c5c7da44c24f5c8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 20 Oct 2026 11:09:36 +0530 Subject: [PATCH] Added notification in bulk sticker --- app/Filament/Pages/BulkStickerPrinting.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Filament/Pages/BulkStickerPrinting.php b/app/Filament/Pages/BulkStickerPrinting.php index 8d2a17fe..55cf64df 100644 --- a/app/Filament/Pages/BulkStickerPrinting.php +++ b/app/Filament/Pages/BulkStickerPrinting.php @@ -1122,14 +1122,14 @@ class BulkStickerPrinting extends Page implements HasForms } } - if ( - $matchedMachineId === null || - trim((string) $matchedMachineId) !== trim((string) $machineId) - ) { + $selectedMachineId = trim((string) $machineId); + $mappedMachineId = trim((string) $matchedMachineId); + + if ($mappedMachineId === '' || $mappedMachineId !== $selectedMachineId) { Notification::make() ->danger() ->title('Machine Mapping Mismatch') - ->body("Selected machine '{$machineId}' does not match the machine mapped to the selected sticker.") + ->body("Selected machine '{$selectedMachineId}' does not match the mapped machine '{$mappedMachineId}'.") ->send(); return; -- 2.49.1