From 2d94ea074c66d430bd540a8bfa69fa2d8d76ecd5 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 12 Apr 2024 17:19:58 +0530 Subject: [PATCH] chore: patch to setup exiting dimensions in Payment Request (cherry picked from commit 3f8d785f021ed47351d230fd9382c934b8e18f7f) --- erpnext/patches.txt | 1 + .../create_accounting_dimensions_in_payment_request.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 erpnext/patches/v15_0/create_accounting_dimensions_in_payment_request.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 9fffbae4c8b..c74a2839958 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -355,6 +355,7 @@ erpnext.patches.v14_0.update_total_asset_cost_field erpnext.patches.v14_0.create_accounting_dimensions_in_reconciliation_tool erpnext.patches.v15_0.allow_on_submit_dimensions_for_repostable_doctypes erpnext.patches.v14_0.update_flag_for_return_invoices #2024-03-22 +erpnext.patches.v15_0.create_accounting_dimensions_in_payment_request # 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/v15_0/create_accounting_dimensions_in_payment_request.py b/erpnext/patches/v15_0/create_accounting_dimensions_in_payment_request.py new file mode 100644 index 00000000000..fc50b60ec9d --- /dev/null +++ b/erpnext/patches/v15_0/create_accounting_dimensions_in_payment_request.py @@ -0,0 +1,7 @@ +from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import ( + create_accounting_dimensions_for_doctype, +) + + +def execute(): + create_accounting_dimensions_for_doctype(doctype="Payment Request")