From 9aed9d31b90d3bd18a2fb16f4d3c3b5ef4b0ca73 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Mon, 10 Aug 2026 12:33:08 +0530 Subject: [PATCH] Fix existing GSTIN display in bulk registrations --- .../templates/registrations/bulk.html | 5 ++-- app/modules/registrations/ui.py | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/modules/registrations/templates/registrations/bulk.html b/app/modules/registrations/templates/registrations/bulk.html index d3c48b1..968f0d6 100644 --- a/app/modules/registrations/templates/registrations/bulk.html +++ b/app/modules/registrations/templates/registrations/bulk.html @@ -197,7 +197,7 @@ {% set client_businesses = businesses_by_client.get(client.id, []) %} {% set client_branches = branches_by_client.get(client.id, []) %} + data-search="{{ ((client.client_code or '') ~ ' ' ~ (client.client_name or '') ~ ' ' ~ (client.pan or '') ~ ' ' ~ (gstins_by_client.get(client.id, [])|join(' ')) ~ ' ' ~ (client.trade_name or ''))|lower|e }}"> @@ -208,7 +208,8 @@
PAN: {{ client.pan or '-' }}
-
GSTIN: {{ client.gstin or '-' }}
+ {% set existing_gstins = gstins_by_client.get(client.id, []) %} +
GSTIN: {{ existing_gstins|join(', ') if existing_gstins else '-' }}