commit | e55611497baee4a71764edde31dcbd8abb582e89 | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Tue Feb 06 13:56:41 2024 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Tue Feb 06 13:56:41 2024 +0530 |
tree | ce4e49530366a466ab69f76c06073fcfa7a033f4 | |
parent | 6d87cfeb8d87b6faed8a7238cd8cf97df2acd99d [diff] |
fix: duplicate for tax category in map
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 4a80dd0..60713a1 100644 --- a/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py +++ b/erpnext/accounts/report/tax_withholding_details/tax_withholding_details.py
@@ -295,7 +295,7 @@ tds_accounts = {} for tds_acc in _tds_accounts: # if it turns out not to be the only tax withholding category, then don't include in the map - if tds_accounts.get(tds_acc["account"]): + if tds_acc["account"] in tds_accounts: tds_accounts[tds_acc["account"]] = None else: tds_accounts[tds_acc["account"]] = tds_acc["parent"]