Merge pull request 'added logic in of panel inspection' (#946) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s

Reviewed-on: #946
This commit was merged in pull request #946.
This commit is contained in:
2026-08-26 10:50:54 +00:00

View File

@@ -846,24 +846,24 @@ class InvoiceDataTable extends Component
return; 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){ if(!$panelExist){
// Notification::make() Notification::make()
// ->title('Panel Not Verified') ->title('Panel Not Verified')
// ->body("Panel Quality Inspection failed.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>") ->body("Panel Quality Inspection failed.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>")
// ->danger() ->danger()
// ->seconds(2) ->seconds(2)
// ->send(); ->send();
// $this->capacitorInput = ''; $this->capacitorInput = '';
// return; return;
// } }
// } }
$this->package = InvoiceValidation::with('stickerMasterRelation') $this->package = InvoiceValidation::with('stickerMasterRelation')
->where('invoice_number', $this->invoiceNumber) ->where('invoice_number', $this->invoiceNumber)