From 4da6375db0d13cc219b4884017ea2dc20f7edd02 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 12:20:07 +0530 Subject: [PATCH] Changed logic in invoice data table --- app/Livewire/InvoiceDataTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/InvoiceDataTable.php b/app/Livewire/InvoiceDataTable.php index df92af86..b2e649c7 100644 --- a/app/Livewire/InvoiceDataTable.php +++ b/app/Livewire/InvoiceDataTable.php @@ -883,7 +883,7 @@ class InvoiceDataTable extends Component return; } - $panelExistNotOk = PanelBoxValidation::where('plant_id', $this->plantId)->where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->whereNotNull('status')->where('status', '!=', '')->first(); + $panelExistNotOk = PanelBoxValidation::where('plant_id', $this->plantId)->where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->whereNotNull('status')->where('status', '!=', '')->where('status', 'NotOk')->first(); if($panelExistNotOk){ Notification::make() -- 2.49.1