mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
don't change lead if assigned
This commit is contained in:
@@ -31,7 +31,8 @@ class Appointment(Document):
|
|||||||
if(number_of_appointments_in_same_slot >= number_of_agents):
|
if(number_of_appointments_in_same_slot >= number_of_agents):
|
||||||
frappe.throw('Time slot is not available')
|
frappe.throw('Time slot is not available')
|
||||||
# Link lead
|
# Link lead
|
||||||
self.lead = self.find_lead_by_email()
|
if not self.lead:
|
||||||
|
self.lead = self.find_lead_by_email()
|
||||||
|
|
||||||
def after_insert(self):
|
def after_insert(self):
|
||||||
if self.lead:
|
if self.lead:
|
||||||
@@ -56,8 +57,9 @@ class Appointment(Document):
|
|||||||
template=template,
|
template=template,
|
||||||
args=args,
|
args=args,
|
||||||
subject=_('Appointment Confirmation'))
|
subject=_('Appointment Confirmation'))
|
||||||
frappe.msgprint(
|
if frappe.session.user == "Guest":
|
||||||
'Please check your email to confirm the appointment')
|
frappe.msgprint(
|
||||||
|
'Please check your email to confirm the appointment')
|
||||||
|
|
||||||
def on_change(self):
|
def on_change(self):
|
||||||
# Sync Calendar
|
# Sync Calendar
|
||||||
|
|||||||
Reference in New Issue
Block a user