changed logic in panel box validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Larastan / larastan (pull_request) Failing after 5m44s
Laravel Pint / pint (pull_request) Successful in 8m35s

This commit is contained in:
dhanabalan
2026-11-30 15:01:52 +05:30
parent 416ae974da
commit ce611961ee

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...')