mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
add flt() for None type error
This commit is contained in:
@@ -489,7 +489,7 @@ class JournalEntry(AccountsController):
|
|||||||
).format(d.reference_name, d.account)
|
).format(d.reference_name, d.account)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
dr_or_cr = "debit" if d.credit > 0 else "credit"
|
dr_or_cr = "debit" if flt(d.credit) > 0 else "credit"
|
||||||
valid = False
|
valid = False
|
||||||
for jvd in against_entries:
|
for jvd in against_entries:
|
||||||
if flt(jvd[dr_or_cr]) > 0:
|
if flt(jvd[dr_or_cr]) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user