1
0
forked from poc/pds

Added notification in bulk sticker

This commit is contained in:
dhanabalan
2026-10-20 11:09:36 +05:30
parent 6f9347011f
commit 57b1ec5b82

View File

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