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:
Suraj Shetty 2019-08-21 15:19:08 +05:30 committed by GitHub
parent 5619db28cb
commit 109a07b834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ def get_employees_with_number(number):
if employee_emails: return employee_emails
employees = frappe.get_all('Employee', filters={
'cell_number': ['like', '%{}'.format(number)],
'cell_number': ['like', '%{}%'.format(number)],
'user_id': ['!=', '']
}, fields=['user_id'])