Merge pull request #14345 from pratu16x7/members-patch

[patch][update] naming_series field in member patch
This commit is contained in:
Prateeksha Singh 2018-06-04 16:37:57 +05:30 committed by GitHub
commit 03644f2a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -544,4 +544,4 @@ erpnext.patches.v11_0.refactor_erpnext_shopify
erpnext.patches.v11_0.move_item_defaults_to_child_table_for_multicompany
erpnext.patches.v11_0.rename_overproduction_percent_field
erpnext.patches.v10_0.update_status_in_purchase_receipt
erpnext.patches.v11_0.rename_members_with_naming_series
erpnext.patches.v11_0.rename_members_with_naming_series #04-06-2018

View File

@ -8,3 +8,5 @@ def execute():
for member in old_named_members:
current_index += 1
frappe.rename_doc("Member", member["name"], "MEM-" + str(current_index).zfill(5))
frappe.db.sql("""update `tabMember` set naming_series = 'MEM-'""")