fix: include current invoice amount when tax_on_excess_amount is checked

(cherry picked from commit b74f2896cd)
This commit is contained in:
venkat102
2024-11-18 15:42:01 +05:30
committed by Mergify
parent d4f0512a10
commit 0ffeb9f6ad

View File

@@ -568,7 +568,7 @@ def get_tds_amount(ldc, parties, inv, tax_details, vouchers):
if (cumulative_threshold and supp_credit_amt >= cumulative_threshold) and cint(
tax_details.tax_on_excess_amount
):
supp_credit_amt = net_total - cumulative_threshold
supp_credit_amt = net_total + tax_withholding_net_total - cumulative_threshold
if ldc and is_valid_certificate(ldc, inv.get("posting_date") or inv.get("transaction_date"), 0):
tds_amount = get_lower_deduction_amount(