From ea1945d8423fe8e2f46a33294ef59141e40694bd Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 13 Aug 2026 19:29:07 +0530 Subject: [PATCH] Skip match modal when ABHA already linked --- app/Views/billing/Patient_V.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Views/billing/Patient_V.php b/app/Views/billing/Patient_V.php index 132dab1..f71c7be 100644 --- a/app/Views/billing/Patient_V.php +++ b/app/Views/billing/Patient_V.php @@ -1436,6 +1436,10 @@ return; } window.AbhaVerifyModal.open(identifier || '', lookupResponse || null, function(profile) { + if (profile && profile.need_confirmation === false && Number(profile.patient_id || 0) > 0) { + showRegResult(profile); + return; + } window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) { showRegResult(finalResponse); }); @@ -1448,6 +1452,10 @@ return; } window.AbhaCreateModal.open(function(profile) { + if (profile && profile.need_confirmation === false && Number(profile.patient_id || 0) > 0) { + if (typeof showRegResult === 'function') showRegResult(profile); + return; + } window.AbhaPatientMatchModal.open(profile, profile.candidates || [], function(finalResponse) { if (typeof showRegResult === 'function') showRegResult(finalResponse); });