Compare commits
2 Commits
c2cfcea8a2
...
d6038d97bd
| Author | SHA1 | Date | |
|---|---|---|---|
| d6038d97bd | |||
|
|
6856c1ab01 |
@@ -846,24 +846,24 @@ class InvoiceDataTable extends Component
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$categoryExist = Item::where('code', $itemCode)->first();
|
// $categoryExist = Item::where('code', $itemCode)->first();
|
||||||
|
|
||||||
if($categoryExist?->category == 'Panel Box'){
|
// if($categoryExist?->category == 'Panel Box'){
|
||||||
|
|
||||||
$panelExist = PanelBoxValidation::where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->first();
|
// $panelExist = PanelBoxValidation::where('panel_box_serial_number', $serialNumber)->where('panel_box_code', $itemCode)->where('panel_box_supplier', $supplier)->first();
|
||||||
|
|
||||||
if(!$panelExist){
|
// if(!$panelExist){
|
||||||
Notification::make()
|
// Notification::make()
|
||||||
->title('Panel Not Verified')
|
// ->title('Panel Not Verified')
|
||||||
->body("Panel Quality Inspection failed.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>")
|
// ->body("Panel Quality Inspection failed.<br>Panel Box Code: $itemCode, Item Code: {$this->currentItemCode}, Serial Number: $serialNumber.</br>")
|
||||||
->danger()
|
// ->danger()
|
||||||
->seconds(2)
|
// ->seconds(2)
|
||||||
->send();
|
// ->send();
|
||||||
$this->capacitorInput = '';
|
// $this->capacitorInput = '';
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
$this->package = InvoiceValidation::with('stickerMasterRelation')
|
$this->package = InvoiceValidation::with('stickerMasterRelation')
|
||||||
->where('invoice_number', $this->invoiceNumber)
|
->where('invoice_number', $this->invoiceNumber)
|
||||||
|
|||||||
Reference in New Issue
Block a user