Skip to content

Commit

Permalink
Merge pull request #37715 from frappe/mergify/bp/version-14/pr-37714
Browse files Browse the repository at this point in the history
fix: typeerror on tds payable monthly report (backport #37714)
  • Loading branch information
ruthra-kumar authored Oct 27, 2023
2 parents 83b3785 + 52cfe3f commit 254dd3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_result(
tax_amount += entry.credit - entry.debit

if net_total_map.get(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
total_amount = grand_total = base_total = tax_amount / (rate / 100)
else:
Expand Down

0 comments on commit 254dd3d

Please sign in to comment.