mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
add flt() for None type error (#38299)
This commit is contained in:
@@ -868,7 +868,7 @@ class JournalEntry(AccountsController):
|
|||||||
party_account_currency = d.account_currency
|
party_account_currency = d.account_currency
|
||||||
|
|
||||||
elif frappe.get_cached_value("Account", d.account, "account_type") in ["Bank", "Cash"]:
|
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
|
bank_account_currency = d.account_currency
|
||||||
|
|
||||||
if party_type and pay_to_recd_from:
|
if party_type and pay_to_recd_from:
|
||||||
|
|||||||
Reference in New Issue
Block a user