fix: Commit joural entries

This commit is contained in:
Deepesh Garg 2021-12-04 19:25:44 +05:30
parent 67a001d876
commit 0ba4fcee2a

View File

@ -447,6 +447,8 @@ def book_revenue_via_journal_entry(doc, credit_account, debit_account, against,
if submit:
journal_entry.submit()
frappe.db.commit()
except Exception:
frappe.db.rollback()
traceback = frappe.get_traceback()