Merge pull request #37707 from ruthra-kumar/typeerror_on_tds_payable_monthly

fix: typeerror on TDS payable monthly report
This commit is contained in:
ruthra kumar 2023-10-27 07:36:19 +05:30 committed by GitHub
commit e33fd450fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: