From 6e64f8ef00728dc0903e49b09269c061ef382665 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Fri, 28 Jul 2017 20:22:00 +0100 Subject: [PATCH] Add customer phone number if available in the register suggestions (#744) --- application/models/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Customer.php b/application/models/Customer.php index f156ebff1..ae2baf102 100644 --- a/application/models/Customer.php +++ b/application/models/Customer.php @@ -262,7 +262,7 @@ class Customer extends Person $this->db->order_by('last_name', 'asc'); foreach($this->db->get()->result() as $row) { - $suggestions[] = array('value' => $row->person_id, 'label' => $row->first_name.' '.$row->last_name); + $suggestions[] = array('value' => $row->person_id, 'label' => $row->first_name . ' ' . $row->last_name . (!empty($row->phone_number) ? ' [' . $row->phone_number . ']' : '')); } if(!$unique)