Moved email to appoitnmetn doctype
diff --git a/erpnext/crm/doctype/appointment/appointment.py b/erpnext/crm/doctype/appointment/appointment.py
index 5e06486..1095b56 100644
--- a/erpnext/crm/doctype/appointment/appointment.py
+++ b/erpnext/crm/doctype/appointment/appointment.py
@@ -49,7 +49,9 @@
def on_update():
# Sync Calednar
- cal_event = frappe.get_doc('Event,self.calendar_event
+ cal_event = frappe.get_doc('Event',self.calendar_event)
+ cal_event.starts_on = self.scheduled_time
+ cal_event.save()
def set_verified(self,email):
if not email == self.email:
diff --git a/erpnext/www/book-appointment/index.py b/erpnext/www/book-appointment/index.py
index c1585aa..67619fc 100644
--- a/erpnext/www/book-appointment/index.py
+++ b/erpnext/www/book-appointment/index.py
@@ -98,7 +98,7 @@
appointment.customer_phone_number = contact['number']
appointment.customer_skype = contact['skype']
appointment.customer_details = contact['notes']
- appointment.lead = contact['email']
+ appointment.email = contact['email']
appointment.status = 'Open'
appointment.insert()