From 6905981e55e209db43442e143b07f50e8b2d36b7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 29 Aug 2026 10:13:52 +0530 Subject: [PATCH] Added halt logic in create panel box validation --- .../Pages/CreatePanelBoxValidation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php index 2320a69..38e5f69 100644 --- a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php +++ b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php @@ -74,10 +74,13 @@ class CreatePanelBoxValidation extends CreateRecord { // return $data; // } - if ($this->checkIfHasCharacteristics($data)) { + if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) { $this->showChecklist = true; $this->halt(); } + if(($data['serial_exists']) == true){ + $this->halt(); + } else{ \Filament\Notifications\Notification::make() ->title('Characteristics not found for the scanned item.')