Typo and styling fixes
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
diff --git a/erpnext/crm/doctype/appointment/appointment.py b/erpnext/crm/doctype/appointment/appointment.py
index 3a588fb..614a43c 100644
--- a/erpnext/crm/doctype/appointment/appointment.py
+++ b/erpnext/crm/doctype/appointment/appointment.py
@@ -89,7 +89,7 @@
def _check_agent_availability(agent_email,scheduled_time):
- appointemnts_at_scheduled_time = frappe.get_list('Appointment', filters={'scheduled_time':scheduled_time})
+ appointments_at_scheduled_time = frappe.get_list('Appointment', filters={'scheduled_time': scheduled_time})
for appointment in appointemnts_at_scheduled_time:
if appointment._assign == agent_email:
return False
@@ -97,4 +97,4 @@
def _get_employee_from_user(user):
- return frappe.get_list('Employee', fields='*',filters={'user_id':user})
\ No newline at end of file
+ return frappe.get_list('Employee', fields='*',filters={'user_id':user})