Add mobile number to customer vehicle search string for job order
This commit is contained in:
parent
bedad011c9
commit
8a2c84bdfd
1 changed files with 3 additions and 2 deletions
|
|
@ -569,11 +569,12 @@ class CustomerController extends BaseController
|
|||
->createQueryBuilder('q');
|
||||
|
||||
// build expression now since we're reusing it
|
||||
$vehicle_label = $qb->expr()->concat('q.plate_number', $qb->expr()->literal(' - '), 'c.first_name', $qb->expr()->literal(' '), 'c.last_name');
|
||||
$vehicle_label = $qb->expr()->concat('q.plate_number', $qb->expr()->literal(' - '), 'c.first_name', $qb->expr()->literal(' '), 'c.last_name', $qb->expr()->literal(' ('), 'n.id', $qb->expr()->literal(')'));
|
||||
|
||||
// count total records
|
||||
$tquery = $qb->select('COUNT(q)')
|
||||
->join('q.customer', 'c');
|
||||
->join('q.customer', 'c')
|
||||
->join('c.numbers', 'n');
|
||||
|
||||
// add filters to count query
|
||||
if (!empty($term)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue