From 2fc776d0f5f1ad3c841cd88b5b955b72466b20c7 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Thu, 26 Sep 2024 13:41:16 +0530 Subject: [PATCH] fix: create Account Closing Balance even though there are no transaction in period (cherry picked from commit 43deaea96b178592a4e18d9e01b33823a9cab8bd) --- .../doctype/period_closing_voucher/period_closing_voucher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py index c6ccb52f86d..6109185f0bd 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.py @@ -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)