mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix:formatting
This commit is contained in:
@@ -102,11 +102,11 @@ def create_appointment(date, time, tz, contact):
|
|||||||
scheduled_time = scheduled_time.replace(tzinfo=None)
|
scheduled_time = scheduled_time.replace(tzinfo=None)
|
||||||
appointment.scheduled_time = scheduled_time
|
appointment.scheduled_time = scheduled_time
|
||||||
contact = json.loads(contact)
|
contact = json.loads(contact)
|
||||||
appointment.customer_name = contact['name']
|
appointment.customer_name = contact.get('name',None)
|
||||||
appointment.customer_phone_number = contact['number']
|
appointment.customer_phone_number = contact.get('number', None)
|
||||||
appointment.customer_skype = contact['skype']
|
appointment.customer_skype = contact.get('skype', None)
|
||||||
appointment.customer_details = contact['notes']
|
appointment.customer_details = contact.get('notes', None)
|
||||||
appointment.customer_email = contact['email']
|
appointment.customer_email = contact.get('email', None)
|
||||||
appointment.status = 'Open'
|
appointment.status = 'Open'
|
||||||
appointment.insert()
|
appointment.insert()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user