mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 15:27:12 +00:00
fix: reference before assignement error
This commit is contained in:
@@ -86,8 +86,8 @@ def create_appointment(date, time, tz, contact):
|
||||
scheduled_time = convert_to_system_timezone(tz, scheduled_time)
|
||||
scheduled_time = scheduled_time.replace(tzinfo=None)
|
||||
# Create a appointment document from form
|
||||
appointment.scheduled_time = scheduled_time
|
||||
appointment = frappe.new_doc('Appointment')
|
||||
appointment.scheduled_time = scheduled_time
|
||||
contact = json.loads(contact)
|
||||
appointment.customer_name = contact.get('name',None)
|
||||
appointment.customer_phone_number = contact.get('number', None)
|
||||
|
||||
Reference in New Issue
Block a user