Skip to content

Commit

Permalink
fix: remove incorrect set_vlaue after rename
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam committed Nov 10, 2023
1 parent 6469002 commit dbab04f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ def execute():
frappe.reload_doc("healthcare", "doctype", frappe.scrub("Healthcare Settings"))

try:
# Rename the field
rename_field("Healthcare Settings", "automate_appointment_invoicing", "show_payment_popup")

# Copy the value
old_value = frappe.db.get_single_value("Healthcare Settings", "show_payment_popup")
frappe.db.set_single_value(
"Healthcare Settings", "show_payment_popup", 1 if old_value == 1 else 0
)

except Exception as e:
if e.args and e.args[0]:
raise

0 comments on commit dbab04f

Please sign in to comment.