Skip to content

Commit

Permalink
fix: typerror on TDS payable monthly report (backport #37707)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit committed Dec 20, 2024
1 parent 218e777 commit db9a319
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_result(filters, tds_docs, tds_accounts, tax_category_map, journal_entry_

rate = tax_rate_map.get(tax_withholding_category)
if net_total_map.get((voucher_type, name)):
if voucher_type == "Journal Entry":
if voucher_type == "Journal Entry" and tax_amount and rate:
# back calcalute total amount from rate and tax_amount
base_total = min(tax_amount / (rate / 100), net_total_map.get((voucher_type, name))[0])
total_amount = grand_total = base_total
Expand Down

0 comments on commit db9a319

Please sign in to comment.