From b95d45981295ab3fb9605c0ef83869e5c4c83059 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 16 Jun 2023 11:15:42 +0530 Subject: [PATCH] fix: Incorrect field while calculating Tax withholding net total --- .../tax_withholding_category/tax_withholding_category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py index 6c11e51b2676..32eaec8cf3eb 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py @@ -526,7 +526,7 @@ def get_tds_amount_from_ldc(ldc, parties, pan_no, tax_details, posting_date, net "docstatus": 1, "posting_date": ("between", (ldc.valid_from, ldc.valid_upto)), }, - "sum(tax_withholding_net_total)", + "sum(base_net_total)", ) if is_valid_certificate(