From 3b2327ba8d28937410b87b03ff72ce4acbb22177 Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Fri, 29 Jan 2021 12:08:35 +0530 Subject: [PATCH] fix: sider --- .../tax_withholding_category/tax_withholding_category.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 4cbca6c08b..961bdb147f 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py @@ -163,7 +163,7 @@ def get_tax_amount(party_type, parties, inv, tax_details, fiscal_year_details, p else: tax_amount = get_tds_amount( ldc, parties, inv, tax_details, - fiscal_year_details, vouchers + fiscal_year_details, tax_deducted, vouchers ) elif party_type == 'Customer': @@ -230,7 +230,7 @@ def get_deducted_tax(taxable_vouchers, fiscal_year, tax_details): return frappe.db.get_value('GL Entry', filters, field) or 0.0 -def get_tds_amount(ldc, parties, inv, tax_details, fiscal_year_details, vouchers): +def get_tds_amount(ldc, parties, inv, tax_details, fiscal_year_details, tax_deducted, vouchers): tds_amount = 0 supp_credit_amt = frappe.db.get_value('Purchase Invoice', { @@ -255,7 +255,7 @@ def get_tds_amount(ldc, parties, inv, tax_details, fiscal_year_details, vouchers if ldc and is_valid_certificate( ldc.valid_from, ldc.valid_upto, inv.posting_date, tax_deducted, - net_total, ldc.certificate_limit + inv.net_total, ldc.certificate_limit ): tds_amount = get_ltds_amount(supp_credit_amt, 0, ldc.certificate_limit, ldc.rate, tax_details) else: