Skip to content

Commit

Permalink
Merge pull request #37714 from ruthra-kumar/fix_typeerror_in_tds_mont…
Browse files Browse the repository at this point in the history
…ly_report

fix: typeerror on tds payable monthly report
  • Loading branch information
ruthra-kumar authored Oct 27, 2023
2 parents 0f4e501 + fea27d5 commit fd21dcd
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 fd21dcd

Please sign in to comment.