Skip to content

Commit

Permalink
fix: Tax withholding related fixes
Browse files Browse the repository at this point in the history
(cherry picked from commit abf5b6b)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Oct 7, 2022
1 parent 217e407 commit a226fcf
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -425,7 +425,10 @@ def get_tds_amount(ldc, parties, inv, tax_details, tax_deducted, vouchers):
):
# Get net total again as TDS is calculated on net total
# Grand is used to just check for threshold breach
net_total = frappe.db.get_value("Purchase Invoice", invoice_filters, "sum(net_total)") or 0.0
net_total = 0
if vouchers:
net_total = frappe.db.get_value("Purchase Invoice", invoice_filters, "sum(net_total)")

net_total += inv.net_total
supp_credit_amt = net_total - cumulative_threshold

Expand Down

0 comments on commit a226fcf

Please sign in to comment.