added fill foem in inspection
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 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 5m22s
Laravel Pint / pint (pull_request) Successful in 5m32s
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 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 5m22s
Laravel Pint / pint (pull_request) Successful in 5m32s
This commit is contained in:
@@ -448,12 +448,9 @@ class PanelBoxInspectionStock extends Page
|
|||||||
|
|
||||||
$panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId)
|
$panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId)
|
||||||
->where('panel_box_serial_number', $serialNumber)
|
->where('panel_box_serial_number', $serialNumber)
|
||||||
// ->where('panel_box_code', $itemCode)
|
|
||||||
->where('panel_box_supplier', $supplier)
|
->where('panel_box_supplier', $supplier)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($panelExistsInvoice) {
|
if ($panelExistsInvoice) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Duplicate Panel Box Serial Number')
|
->title('Duplicate Panel Box Serial Number')
|
||||||
@@ -462,6 +459,12 @@ class PanelBoxInspectionStock extends Page
|
|||||||
->seconds(2)
|
->seconds(2)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
|
$this->form->fill([
|
||||||
|
'plant_id' => $plantId,
|
||||||
|
'line_id' => $lineId,
|
||||||
|
'item_id' => null,
|
||||||
|
]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user