Merge pull request 'Added panel box inspection logic in invoice validation' (#1015) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s

Reviewed-on: #1015
This commit was merged in pull request #1015.
This commit is contained in:
2026-09-11 05:45:19 +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)