Merge pull request 'Changed logic in invoice data table' (#1335) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s

Reviewed-on: #1335
This commit was merged in pull request #1335.
This commit is contained in:
2026-10-29 04:55:52 +00:00

View File

@@ -882,6 +882,20 @@ 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();
if($panelExistNotOk){
Notification::make()
->title('Panel Not Ok')
->body("Panel Quality Inspection NotOk.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>")
->danger()
->seconds(2)
->send();
$this->capacitorInput = '';
return;
}
}
$this->package = InvoiceValidation::with('stickerMasterRelation')