changed logic in panel box inspection stock
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 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 5m6s
Laravel Larastan / larastan (pull_request) Failing after 14m25s
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 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 5m6s
Laravel Larastan / larastan (pull_request) Failing after 14m25s
This commit is contained in:
@@ -446,12 +446,14 @@ class PanelBoxInspectionStock extends Page
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$panelExistsInvoice = InvoiceValidation::where('plant_id', $this->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_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')
|
||||||
|
|||||||
Reference in New Issue
Block a user