solved bufg in not ok validation logic #1489
@@ -4099,7 +4099,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
|
|
||||||
$notOkPanelBox = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNo)->first();
|
$notOkPanelBox = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNo)->first();
|
||||||
|
|
||||||
if($notOkPanelBox->status == 'NotOK'){
|
if($notOkPanelBox->status == 'NotOk'){
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Not Ok Serial Number')
|
->title('Not Ok Serial Number')
|
||||||
->body("scanned panel box serial number '$serialNumber' failed testing (NOT OK). Please scan the serial number of an OK panel box..")
|
->body("scanned panel box serial number '$serialNumber' failed testing (NOT OK). Please scan the serial number of an OK panel box..")
|
||||||
|
|||||||
Reference in New Issue
Block a user