Merge pull request 'ranjith-dev' (#1589) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m17s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m17s
Reviewed-on: #1589
This commit was merged in pull request #1589.
This commit is contained in:
@@ -447,9 +447,12 @@ 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_supplier', $supplier)
|
->where('panel_box_supplier', $supplier)
|
||||||
->first();
|
->where('panel_box_code', $panelBoxCode)
|
||||||
|
->first();
|
||||||
|
|
||||||
|
// dd($panelExistsInvoice);
|
||||||
|
|
||||||
if ($panelExistsInvoice) {
|
if ($panelExistsInvoice) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
@@ -486,20 +489,20 @@ class PanelBoxInspectionStock extends Page
|
|||||||
]);
|
]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else{
|
// else{
|
||||||
Notification::make()
|
// Notification::make()
|
||||||
->title('Already Scanned In Stock')
|
// ->title('Already Scanned In Stock')
|
||||||
->body("Serial number already scanned '$serialNumber' with supplier number '$supplier'.<br>Please scan this serial number in Invoice Validation.")
|
// ->body("Serial number already scanned '$serialNumber' with supplier number '$supplier'.<br>Please scan this serial number in Invoice Validation.")
|
||||||
->success()
|
// ->success()
|
||||||
->send();
|
// ->send();
|
||||||
$this->dispatch('play-error-sound');
|
// $this->dispatch('play-error-sound');
|
||||||
$this->form->fill([
|
// $this->form->fill([
|
||||||
'plant_id' => $plantId,
|
// 'plant_id' => $plantId,
|
||||||
'line_id' => $lineId,
|
// 'line_id' => $lineId,
|
||||||
'item_id' => null,
|
// 'item_id' => null,
|
||||||
]);
|
// ]);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -852,7 +852,7 @@ class InvoiceDataTable extends Component
|
|||||||
|
|
||||||
$panelExistsInvoice = InvoiceValidation::where('plant_id', $this->plantId)
|
$panelExistsInvoice = InvoiceValidation::where('plant_id', $this->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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user