From fffaf834fd477368bf686031c5ad2ace7296d608 Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Tue, 21 Apr 2026 18:29:50 +0530 Subject: [PATCH] refactor: better label for entity type (cherry picked from commit 53666974a354166c4a4f69ab8f1d99742660f79a) --- .../report/tax_withholding_details/tax_withholding_details.py | 2 +- .../report/tds_computation_summary/tds_computation_summary.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py b/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py index e3ef0dd3938..4d385575d57 100644 --- a/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py +++ b/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py @@ -115,7 +115,7 @@ def get_columns(filters): "width": 180, }, { - "label": _("Entity Type"), + "label": _(f"{filters.get('party_type', 'Party')} Type"), "fieldname": "party_entity_type", "fieldtype": "Data", "width": 100, diff --git a/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py b/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py index d0819650470..f09dfe7258b 100644 --- a/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py +++ b/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py @@ -94,7 +94,7 @@ def get_columns(filters): "width": 180, }, { - "label": _("Entity Type"), + "label": _(f"{filters.get('party_type', 'Party')} Type"), "fieldname": "party_entity_type", "fieldtype": "Data", "width": 180,