1
0
forked from poc/pds

Added logic for characteristics not found halting record

This commit is contained in:
dhanabalan
2026-07-04 09:04:06 +05:30
parent 6180cdda52
commit cc75016575

View File

@@ -65,8 +65,15 @@ class CreatePanelBoxValidation extends CreateRecord {
$this->showChecklist = true; $this->showChecklist = true;
$this->halt(); $this->halt();
} }
else{
\Filament\Notifications\Notification::make()
->title('Characteristics not found for the scanned item.')
->danger()
->send();
$this->halt();
}
return $data;
} }
protected function checkIfHasCharacteristics(array $data) protected function checkIfHasCharacteristics(array $data)