mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
fix: typerror on TDS payable monthly report (backport #37707)
This commit is contained in:
@@ -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)
|
rate = tax_rate_map.get(tax_withholding_category)
|
||||||
if net_total_map.get((voucher_type, name)):
|
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
|
# back calcalute total amount from rate and tax_amount
|
||||||
base_total = min(tax_amount / (rate / 100), net_total_map.get((voucher_type, name))[0])
|
base_total = min(tax_amount / (rate / 100), net_total_map.get((voucher_type, name))[0])
|
||||||
total_amount = grand_total = base_total
|
total_amount = grand_total = base_total
|
||||||
|
|||||||
Reference in New Issue
Block a user