mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: use period closing voucher object to call get_account_closing_ba… (#43880)
fix: use period closing voucher object to call get_account_closing_balances method
(cherry picked from commit 99d1c5f342)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user