changed logic in panel box validation #1568

Merged
jothi merged 1 commits from ranjith-dev into master 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...')