Moved email to appoitnmetn doctype
This commit is contained in:
parent
f8cc86bfed
commit
dcfc849946
@ -49,7 +49,9 @@ class Appointment(Document):
|
||||
|
||||
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:
|
||||
|
@ -98,7 +98,7 @@ def create_appointment(date, time, contact):
|
||||
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user