mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
Merge pull request #43901 from frappe/mergify/bp/version-15/pr-43880
fix: use period closing voucher object to call get_account_closing_ba… (backport #43880)
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