From 2bf6125b71c75762c8e77fb244111899537e1c79 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Mon, 26 Feb 2024 11:31:27 +0530 Subject: [PATCH] refactor: patch to setup dimensions in Reconciliation tool (cherry picked from commit 461fb183fc5269ca4e77da1115e173b536ca3fd9) --- erpnext/patches.txt | 1 + ...create_accounting_dimensions_in_reconciliation_tool.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 erpnext/patches/v14_0/create_accounting_dimensions_in_reconciliation_tool.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 33b2a188d0..f0b104e2c5 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -352,6 +352,7 @@ erpnext.patches.v14_0.create_accounting_dimensions_in_supplier_quotation erpnext.patches.v14_0.update_zero_asset_quantity_field execute:frappe.db.set_single_value("Buying Settings", "project_update_frequency", "Each Transaction") erpnext.patches.v14_0.update_total_asset_cost_field +erpnext.patches.v14_0.create_accounting_dimensions_in_reconciliation_tool # below migration patch should always run last erpnext.patches.v14_0.migrate_gl_to_payment_ledger erpnext.stock.doctype.delivery_note.patches.drop_unused_return_against_index # 2023-12-20 diff --git a/erpnext/patches/v14_0/create_accounting_dimensions_in_reconciliation_tool.py b/erpnext/patches/v14_0/create_accounting_dimensions_in_reconciliation_tool.py new file mode 100644 index 0000000000..4466eaace8 --- /dev/null +++ b/erpnext/patches/v14_0/create_accounting_dimensions_in_reconciliation_tool.py @@ -0,0 +1,8 @@ +from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import ( + create_accounting_dimensions_for_doctype, +) + + +def execute(): + create_accounting_dimensions_for_doctype(doctype="Payment Reconciliation") + create_accounting_dimensions_for_doctype(doctype="Payment Reconciliation Allocation")