solved bug in checking not ok panel box serial number
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m58s
Laravel Larastan / larastan (pull_request) Failing after 5m55s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m58s
Laravel Larastan / larastan (pull_request) Failing after 5m55s
This commit is contained in:
@@ -4041,6 +4041,8 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
$supplierSNo = implode('/', array_slice($matches, 3));
|
$supplierSNo = implode('/', array_slice($matches, 3));
|
||||||
$panelBoxCode = $matches[2];
|
$panelBoxCode = $matches[2];
|
||||||
|
|
||||||
|
$pBoxSNo = $matches[3] . '/' . $matches[4];
|
||||||
|
|
||||||
$record = InvoiceValidation::where('serial_number', $serialNumber)->where('plant_id', $plantId)->first();
|
$record = InvoiceValidation::where('serial_number', $serialNumber)->where('plant_id', $plantId)->first();
|
||||||
|
|
||||||
if (! $record) {
|
if (! $record) {
|
||||||
@@ -4094,7 +4096,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$notOkPanelBox = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $supplierSNo)->first();
|
$notOkPanelBox = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNO)->first();
|
||||||
|
|
||||||
if($notOkPanelBox->status == 'NotOK'){
|
if($notOkPanelBox->status == 'NotOK'){
|
||||||
Notification::make()
|
Notification::make()
|
||||||
|
|||||||
Reference in New Issue
Block a user