Skip to content

Commit

Permalink
fix: update cc_to multiselect in process statement of accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-rethik committed Dec 11, 2024
1 parent fb1c176 commit 5a1c73c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,4 +391,5 @@ erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter
erpnext.patches.v15_0.migrate_old_item_wise_tax_detail_data_format
erpnext.patches.v15_0.set_is_exchange_gain_loss_in_payment_entry_deductions
erpnext.patches.v14_0.update_stock_uom_in_work_order_item
erpnext.patches.v15_0.enable_allow_existing_serial_no
erpnext.patches.v15_0.enable_allow_existing_serial_no
erpnext.patches.v15_0.update_cc_in_process_statement_of_accounts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import frappe


def execute():
data = frappe.db.sql(
"""SELECT name, cc_to FROM `tabProcess Statement Of Accounts` WHERE cc_to IS NOT NULL""", as_dict=True
)
for d in data:
doc = frappe.get_doc("Process Statement Of Accounts", d.name)
doc.append("cc_to", {"cc": d.cc_to})
doc.save()

0 comments on commit 5a1c73c

Please sign in to comment.