MCPcopy
hub / github.com/frappe/erpnext / handle_appointment_booking_disabled

Function handle_appointment_booking_disabled

erpnext/www/book_appointment/index.py:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def handle_appointment_booking_disabled():
21 if not frappe.get_single_value("Appointment Booking Settings", "enable_scheduling"):
22 frappe.redirect_to_message(
23 _("Appointment Scheduling Disabled"),
24 _("Appointment Scheduling has been disabled for this site"),
25 http_status_code=302,
26 indicator_color="red",
27 )
28 raise frappe.Redirect
29
30
31@frappe.whitelist(allow_guest=True)

Callers 5

get_contextFunction · 0.85
get_appointment_settingsFunction · 0.85
get_timezonesFunction · 0.85
get_appointment_slotsFunction · 0.85
create_appointmentFunction · 0.85

Calls 1

_Function · 0.85

Tested by

no test coverage detected