mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-05 22:35:29 -04:00
Add customer phone number if available in the register suggestions (#744)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user