Merge pull request 'solved bufg in not ok validation logic' (#1489) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s

Reviewed-on: #1489
This commit was merged in pull request #1489.
This commit is contained in:
2026-11-20 05:45:57 +00:00

View File

@@ -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..")