fix: Fix get_employees_with_number query
if the passed number is 7039392929 then it should match with the employee cell_number set as `7039392929, 0288382222`
This commit is contained in:
parent
5619db28cb
commit
109a07b834
@ -53,7 +53,7 @@ def get_employees_with_number(number):
|
|||||||
if employee_emails: return employee_emails
|
if employee_emails: return employee_emails
|
||||||
|
|
||||||
employees = frappe.get_all('Employee', filters={
|
employees = frappe.get_all('Employee', filters={
|
||||||
'cell_number': ['like', '%{}'.format(number)],
|
'cell_number': ['like', '%{}%'.format(number)],
|
||||||
'user_id': ['!=', '']
|
'user_id': ['!=', '']
|
||||||
}, fields=['user_id'])
|
}, fields=['user_id'])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user