Skip to content

Commit

Permalink
fix: use period closing voucher object to call get_account_closing_ba… (
Browse files Browse the repository at this point in the history
#43880)

fix: use period closing voucher object to call get_account_closing_balances method
(cherry picked from commit 99d1c5f)
  • Loading branch information
venkat102 authored and mergify[bot] committed Oct 29, 2024
1 parent f48ce90 commit 94a03c6
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 94a03c6

Please sign in to comment.