changed logic in panel
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 29s
Laravel Pint / pint (pull_request) Successful in 3m45s
Laravel Larastan / larastan (pull_request) Failing after 6m49s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 29s
Laravel Pint / pint (pull_request) Successful in 3m45s
Laravel Larastan / larastan (pull_request) Failing after 6m49s
This commit is contained in:
@@ -649,24 +649,24 @@ class PanelBoxValidationResource extends Resource
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$panelExistsPanel1 = PanelBoxValidation::where('plant_id', $plantId)
|
// $panelExistsPanel1 = PanelBoxValidation::where('plant_id', $plantId)
|
||||||
->where('panel_box_serial_number', $serialNumber)
|
// ->where('panel_box_serial_number', $serialNumber)
|
||||||
->where('panel_box_supplier', $supplier)
|
// ->where('panel_box_supplier', $supplier)
|
||||||
->first();
|
// ->first();
|
||||||
|
|
||||||
if ($panelExistsPanel1) {
|
// if ($panelExistsPanel1) {
|
||||||
Notification::make()
|
// Notification::make()
|
||||||
->title('Duplicate Panel Box Serial Number')
|
// ->title('Duplicate Panel Box Serial Number')
|
||||||
->body("Duplicate panel already exists.<br>Panel Box Code: $itemCode, Serial Number: $serialNumber, Supplier Number: $supplier in panel box validation")
|
// ->body("Duplicate panel already exists.<br>Panel Box Code: $itemCode, Serial Number: $serialNumber, Supplier Number: $supplier in panel box validation")
|
||||||
->danger()
|
// ->danger()
|
||||||
->seconds(4)
|
// ->seconds(4)
|
||||||
->send();
|
// ->send();
|
||||||
|
|
||||||
$set('item_id', null);
|
// $set('item_id', null);
|
||||||
$set('serial_exists', false);
|
// $set('serial_exists', false);
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId)
|
$panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId)
|
||||||
->where('panel_box_serial_number', $serialNumber)
|
->where('panel_box_serial_number', $serialNumber)
|
||||||
|
|||||||
Reference in New Issue
Block a user