mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
committed by
mergify-bot
parent
2ce36d1edc
commit
fed80177de
@@ -52,7 +52,9 @@ def execute():
|
|||||||
advance.db_set('exchange_gain_loss', 0, False)
|
advance.db_set('exchange_gain_loss', 0, False)
|
||||||
doc.docstatus = 1
|
doc.docstatus = 1
|
||||||
doc.make_gl_entries()
|
doc.make_gl_entries()
|
||||||
|
frappe.db.commit()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
frappe.db.rollback()
|
||||||
print(f'Failed to correct gl entries of {invoice.name}')
|
print(f'Failed to correct gl entries of {invoice.name}')
|
||||||
|
|
||||||
if acc_frozen_upto:
|
if acc_frozen_upto:
|
||||||
|
|||||||
Reference in New Issue
Block a user