fix: account closing balance patch

This commit is contained in:
Nabin Hait 2023-05-10 16:41:47 +05:30
parent 713fa67b96
commit f5cc41e182
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ erpnext.patches.v13_0.update_docs_link
erpnext.patches.v15_0.update_asset_value_for_manual_depr_entries erpnext.patches.v15_0.update_asset_value_for_manual_depr_entries
erpnext.patches.v15_0.update_gpa_and_ndb_for_assdeprsch erpnext.patches.v15_0.update_gpa_and_ndb_for_assdeprsch
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 #05-05-2023 erpnext.patches.v14_0.update_closing_balances #10-05-2023
execute:frappe.db.set_single_value("Accounts Settings", "merge_similar_account_heads", 0) execute:frappe.db.set_single_value("Accounts Settings", "merge_similar_account_heads", 0)
# below migration patches should always run last # below migration patches should always run last
erpnext.patches.v14_0.migrate_gl_to_payment_ledger erpnext.patches.v14_0.migrate_gl_to_payment_ledger

View File

@ -41,7 +41,7 @@ def execute():
"GL Entry", "GL Entry",
filters={ filters={
"is_cancelled": 0, "is_cancelled": 0,
"voucher_type": ["!=", "Period Closing Voucher"], "voucher_no": ["!=", pcv.name],
"posting_date": ["<=", pcv.posting_date], "posting_date": ["<=", pcv.posting_date],
}, },
fields=["*"], fields=["*"],