mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
fix: Update patch to generate closing balance entries
This commit is contained in:
@@ -328,4 +328,4 @@ erpnext.patches.v14_0.change_autoname_for_tax_withheld_vouchers
|
||||
erpnext.patches.v14_0.set_pick_list_status
|
||||
erpnext.patches.v15_0.update_asset_value_for_manual_depr_entries
|
||||
erpnext.patches.v14_0.create_accounting_dimensions_for_closing_balance
|
||||
#erpnext.patches.v14_0.update_closing_balances
|
||||
erpnext.patches.v14_0.update_closing_balances
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.accounts.doctype.closing_balance.closing_balance import make_closing_entries
|
||||
from erpnext.accounts.utils import get_fiscal_year
|
||||
|
||||
|
||||
@@ -23,4 +24,6 @@ def execute():
|
||||
pcv.posting_date, pcv.fiscal_year, company=pcv.company
|
||||
)[1]
|
||||
pcv_doc.make_closing_entries()
|
||||
gl_entries = pcv_doc.get_gl_entries()
|
||||
make_closing_entries(gl_entries, is_period_closing_voucher_entry=True)
|
||||
company_wise_order[pcv.company].append(pcv.posting_date)
|
||||
|
||||
Reference in New Issue
Block a user