fix: Update patch to generate closing balance entries
This commit is contained in:
parent
436fc03eda
commit
95c9aafda9
@ -328,4 +328,4 @@ erpnext.patches.v14_0.change_autoname_for_tax_withheld_vouchers
|
|||||||
erpnext.patches.v14_0.set_pick_list_status
|
erpnext.patches.v14_0.set_pick_list_status
|
||||||
erpnext.patches.v15_0.update_asset_value_for_manual_depr_entries
|
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.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
|
import frappe
|
||||||
|
|
||||||
|
from erpnext.accounts.doctype.closing_balance.closing_balance import make_closing_entries
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
from erpnext.accounts.utils import get_fiscal_year
|
||||||
|
|
||||||
|
|
||||||
@ -23,4 +24,6 @@ def execute():
|
|||||||
pcv.posting_date, pcv.fiscal_year, company=pcv.company
|
pcv.posting_date, pcv.fiscal_year, company=pcv.company
|
||||||
)[1]
|
)[1]
|
||||||
pcv_doc.make_closing_entries()
|
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)
|
company_wise_order[pcv.company].append(pcv.posting_date)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user