commit | f09c5f32cf4bd80dabb030d5910a2290365805ec | [log] [tgz] |
---|---|---|
author | NandhiniDevi <95607404+Nandhinidevi123@users.noreply.github.com> | Fri Nov 24 11:17:35 2023 +0530 |
committer | GitHub <noreply@github.com> | Fri Nov 24 11:17:35 2023 +0530 |
tree | bfed546170b59333b389e81a18834e6497063c40 | |
parent | f7b50f2adef11b9f2bd843d6bca3f2b6cf7be19b [diff] |
add flt() for None type error
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 34a753f..1dbde93 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py
@@ -489,7 +489,7 @@ ).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: