brotherton-erpnext/erpnext/patches/v12_0/update_appointment_reminder_scheduler_entry.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
307 B
Python
Raw Normal View History

import frappe
def execute():
job = frappe.db.exists('Scheduled Job Type', 'patient_appointment.send_appointment_reminder')
if job:
method = 'erpnext.healthcare.doctype.patient_appointment.patient_appointment.send_appointment_reminder'
frappe.db.set_value('Scheduled Job Type', job, 'method', method)