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 authored Nov 24, 2023
1 parent f7b50f2 commit f09c5f3
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 @@ -489,7 +489,7 @@ def validate_against_jv(self):
).format(d.reference_name, d.account)
)
else:
dr_or_cr = "debit" if d.credit > 0 else "credit"
dr_or_cr = "debit" if flt(d.credit) > 0 else "credit"
valid = False
for jvd in against_entries:
if flt(jvd[dr_or_cr]) > 0:
Expand Down

0 comments on commit f09c5f3

Please sign in to comment.