Skip to content

Commit

Permalink
fix: Accounts closing balance patch (#36113)
Browse files Browse the repository at this point in the history
fix: Accounts closing balance patch (#36113)

(cherry picked from commit d631c7d)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 committed Jul 13, 2023
1 parent 63e26e3 commit cf29156
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/patches/v14_0/update_closing_balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def execute():
entry["closing_date"] = pcv_doc.posting_date
entry["period_closing_voucher"] = pcv_doc.name

make_closing_entries(gl_entries + closing_entries, voucher_name=pcv.name)
entries = gl_entries + closing_entries
if entries:
make_closing_entries(entries, voucher_name=pcv.name)

company_wise_order[pcv.company].append(pcv.posting_date)

i += 1

0 comments on commit cf29156

Please sign in to comment.