changed logic in panel box inspection stock #1318
@@ -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