Merge pull request 'changed logic in panel box validation' (#1568) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s

Reviewed-on: #1568
This commit was merged in pull request #1568.
This commit is contained in:
2026-11-30 09:32:08 +00:00

View File

@@ -1249,7 +1249,7 @@ class PanelBoxValidationResource extends Resource
->where('panel_box_supplier', $supplierNo)
->first();
if ($alreadyExists) {
if ($alreadyExists && !empty($inspecLotNo)) {
Notification::make()
->title('Duplicate Found')
->body('This document number and inspection lot number have already been used for this serial number. Please provide a new document number and inspection lot number for rework...')