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
(cherry picked from commit 2a6be12)

# Conflicts:
#	erpnext/patches.txt
  • Loading branch information
rs-rethik authored and mergify[bot] committed Dec 17, 2024
1 parent 7665eac commit df9bc33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,10 @@ erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter
erpnext.patches.v15_0.update_task_assignee_email_field_in_asset_maintenance_log
erpnext.patches.v15_0.update_sub_voucher_type_in_gl_entries
erpnext.patches.v14_0.update_stock_uom_in_work_order_item
<<<<<<< HEAD
erpnext.patches.v15_0.set_is_exchange_gain_loss_in_payment_entry_deductions
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
>>>>>>> 2a6be127ef (fix: update cc_to multiselect 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 df9bc33

Please sign in to comment.