mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 09:17:15 +00:00
fix: typeerror on tds payable monthly report
(cherry picked from commit fea27d5e2e)
This commit is contained in:
@@ -68,7 +68,7 @@ def get_result(
|
|||||||
tax_amount += entry.credit - entry.debit
|
tax_amount += entry.credit - entry.debit
|
||||||
|
|
||||||
if net_total_map.get(name):
|
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
|
# back calcalute total amount from rate and tax_amount
|
||||||
total_amount = grand_total = base_total = tax_amount / (rate / 100)
|
total_amount = grand_total = base_total = tax_amount / (rate / 100)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user