Skip to content

Commit

Permalink
Merge pull request #43901 from frappe/mergify/bp/version-15/pr-43880
Browse files Browse the repository at this point in the history
fix: use period closing voucher object to call get_account_closing_ba… (backport #43880)
  • Loading branch information
ruthra-kumar authored Oct 29, 2024
2 parents f48ce90 + 94a03c6 commit 48939f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions erpnext/patches/v14_0/update_closing_balances.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def execute():
for pcv in get_period_closing_vouchers(company):
company_wise_order.setdefault(pcv.company, [])
if pcv.period_end_date not in company_wise_order[pcv.company]:
pcv.pl_accounts_reverse_gle = get_pcv_gl_entries(pcv, gle_fields)
closing_entries = pcv.get_account_closing_balances()
pcv_doc = frappe.get_doc("Period Closing Voucher", pcv.name)
pcv_doc.pl_accounts_reverse_gle = get_pcv_gl_entries(pcv, gle_fields)
closing_entries = pcv_doc.get_account_closing_balances()
if closing_entries:
make_closing_entries(closing_entries, pcv.name, pcv.company, pcv.period_end_date)

Expand Down

0 comments on commit 48939f2

Please sign in to comment.