added notification for characteritics not found in panel box validation
This commit is contained in:
@@ -74,14 +74,14 @@ class CreatePanelBoxValidation extends CreateRecord {
|
|||||||
// return $data;
|
// return $data;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
if(($data['serial_exists']) == true){
|
||||||
|
$this->halt();
|
||||||
|
}
|
||||||
if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) {
|
if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) {
|
||||||
$this->showChecklist = true;
|
$this->showChecklist = true;
|
||||||
$this->halt();
|
$this->halt();
|
||||||
}
|
}
|
||||||
if(($data['serial_exists']) == true){
|
if(!$this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false){
|
||||||
$this->halt();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
\Filament\Notifications\Notification::make()
|
\Filament\Notifications\Notification::make()
|
||||||
->title('Characteristics not found for the scanned item.')
|
->title('Characteristics not found for the scanned item.')
|
||||||
->danger()
|
->danger()
|
||||||
|
|||||||
Reference in New Issue
Block a user