fix: create Account Closing Balance even though there are no transaction in period

(cherry picked from commit 43deaea96b)
This commit is contained in:
ljain112
2024-09-26 13:41:16 +05:30
committed by Mergify
parent 31ecdb2104
commit 2fc776d0f5

View File

@@ -362,8 +362,7 @@ def process_closing_entries(gl_entries, closing_entries, voucher_name, company,
)
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:
frappe.db.rollback()
frappe.log_error(e)