Merge pull request 'added duplicate panel box in invoice validation' (#1217) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Reviewed-on: #1217
This commit was merged in pull request #1217.
This commit is contained in:
@@ -863,18 +863,21 @@ class InvoiceDataTable extends Component
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if($categoryExist?->category == 'Panel Box'){
|
|
||||||
|
|
||||||
$panelExistInvoice = InvoiceValidation::where('plant_id', $this->plantId)->where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->first();
|
$panelExistsInvoice = InvoiceValidation::where('plant_id', $this->plantId)
|
||||||
|
->where('panel_box_serial_number', $serialNumber)
|
||||||
|
->where('panel_box_code', $itemCode)
|
||||||
|
->where('panel_box_supplier', $supplier)
|
||||||
|
->first();
|
||||||
|
|
||||||
if($panelExistInvoice){
|
if ($panelExistsInvoice) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Duplicate Panel')
|
->title('Duplicate Panel')
|
||||||
->body("Duplicate panel already exist.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>")
|
->body("Duplicate panel already exists.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(2)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->capacitorInput = '';
|
$this->capacitorInput = '';
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user