removed logic for inspection failed in invoice data table
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 3m46s
Laravel Larastan / larastan (pull_request) Failing after 3m50s

This commit is contained in:
dhanabalan
2026-08-26 16:19:13 +05:30
parent 8ff3800e40
commit 6856c1ab01

View File

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