Merge pull request #1410 from laravel-vesuvius/develop
Fix search Appointments_model
This commit is contained in:
commit
784cb0c877
1 changed files with 4 additions and 4 deletions
|
@ -466,11 +466,11 @@ class Appointments_model extends EA_Model {
|
||||||
|
|
||||||
$appointments = $this
|
$appointments = $this
|
||||||
->db
|
->db
|
||||||
->select()
|
->select('appointments.*')
|
||||||
->from('appointments')
|
->from('appointments')
|
||||||
->join('services', 'services.id = appointments.id_services', 'left')
|
->join('services', 'services.id = appointments.id_services', 'left')
|
||||||
->join('users AS providers', 'providers.id = appointments.id_users_provider', 'inner')
|
->join('users AS providers', 'providers.id = appointments.id_users_provider', 'inner')
|
||||||
->join('users AS customers', 'customers.id = appointment.id_users_customer', 'left')
|
->join('users AS customers', 'customers.id = appointments.id_users_customer', 'left')
|
||||||
->where('is_unavailability', FALSE)
|
->where('is_unavailability', FALSE)
|
||||||
->group_start()
|
->group_start()
|
||||||
->like('appointments.start_datetime', $keyword)
|
->like('appointments.start_datetime', $keyword)
|
||||||
|
@ -478,8 +478,8 @@ class Appointments_model extends EA_Model {
|
||||||
->or_like('appointments.location', $keyword)
|
->or_like('appointments.location', $keyword)
|
||||||
->or_like('appointments.hash', $keyword)
|
->or_like('appointments.hash', $keyword)
|
||||||
->or_like('appointments.notes', $keyword)
|
->or_like('appointments.notes', $keyword)
|
||||||
->or_like('service.name', $keyword)
|
->or_like('services.name', $keyword)
|
||||||
->or_like('service.description', $keyword)
|
->or_like('services.description', $keyword)
|
||||||
->or_like('providers.first_name', $keyword)
|
->or_like('providers.first_name', $keyword)
|
||||||
->or_like('providers.last_name', $keyword)
|
->or_like('providers.last_name', $keyword)
|
||||||
->or_like('providers.email', $keyword)
|
->or_like('providers.email', $keyword)
|
||||||
|
|
Loading…
Reference in a new issue