Changed logic in invoice data table
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 4m5s
Laravel Larastan / larastan (pull_request) Failing after 5m15s

This commit is contained in:
dhanabalan
2026-10-29 10:25:33 +05:30
parent 924337fa6c
commit 8cf3516094

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')