mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
fix: create Account Closing Balance even though there are no transaction in period
(cherry picked from commit 43deaea96b)
This commit is contained in:
@@ -392,8 +392,7 @@ def process_closing_entries(gl_entries, closing_entries, voucher_name, company,
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if gl_entries + closing_entries:
|
make_closing_entries(gl_entries + closing_entries, voucher_name, company, closing_date)
|
||||||
make_closing_entries(gl_entries + closing_entries, voucher_name, company, closing_date)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
frappe.db.rollback()
|
frappe.db.rollback()
|
||||||
frappe.log_error(e)
|
frappe.log_error(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user