diff --git a/app/Livewire/InvoiceDataTable.php b/app/Livewire/InvoiceDataTable.php index f6bbc6f..75fb121 100644 --- a/app/Livewire/InvoiceDataTable.php +++ b/app/Livewire/InvoiceDataTable.php @@ -846,24 +846,24 @@ class InvoiceDataTable extends Component return; } - $categoryExist = Item::where('code', $itemCode)->first(); + // $categoryExist = Item::where('code', $itemCode)->first(); - if($categoryExist?->category == 'Panel Box'){ + // if($categoryExist?->category == 'Panel Box'){ - $panelExist = PanelBoxValidation::where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->first(); + // $panelExist = PanelBoxValidation::where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->first(); - if(!$panelExist){ - Notification::make() - ->title('Panel Not Verified') - ->body("Panel Quality Inspection failed.
Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.
") - ->danger() - ->seconds(2) - ->send(); - $this->capacitorInput = ''; + // if(!$panelExist){ + // Notification::make() + // ->title('Panel Not Verified') + // ->body("Panel Quality Inspection failed.
Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.
") + // ->danger() + // ->seconds(2) + // ->send(); + // $this->capacitorInput = ''; - return; - } - } + // return; + // } + // } $this->package = InvoiceValidation::with('stickerMasterRelation') ->where('invoice_number', $this->invoiceNumber)