fix: Commit joural entries

(cherry picked from commit 0ba4fcee2a)
This commit is contained in:
Deepesh Garg
2021-12-04 19:25:44 +05:30
committed by mergify-bot
parent 46e492d594
commit 6b8b2946c1

View File

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