Skip to content

Commit

Permalink
add flt() for None type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandhinidevi123 committed Nov 23, 2023
1 parent f7b50f2 commit 2a4848e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/journal_entry/journal_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def set_print_format_fields(self):
party_account_currency = d.account_currency

elif frappe.get_cached_value("Account", d.account, "account_type") in ["Bank", "Cash"]:
bank_amount += d.debit_in_account_currency or d.credit_in_account_currency
bank_amount += flt(d.debit_in_account_currency) or flt(d.credit_in_account_currency)
bank_account_currency = d.account_currency

if party_type and pay_to_recd_from:
Expand Down

0 comments on commit 2a4848e

Please sign in to comment.