From fc3050d0757774dc7e61847f684def0b3a9c33af Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 30 May 2011 18:05:57 +0200 Subject: [PATCH] Customer/branch list was searched on name and not reference. --- includes/ui/ui_lists.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 14eb5443..808e7557 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -477,7 +477,7 @@ function customer_list($name, $selected_id=null, $spec_option=false, $submit_on_ if ($editkey) set_editor('customer', $name, $editkey); - return combo_input($name, $selected_id, $sql, 'debtor_no', 'name', + return combo_input($name, $selected_id, $sql, 'debtor_no', 'debtor_ref', array( 'format' => '_format_add_curr', 'order' => array('debtor_ref'), @@ -528,7 +528,7 @@ function customer_branches_list($customer_id, $name, $selected_id=null, set_editor('branch', $name, $editkey); $where = $enabled ? array("disable_trans = 0") : array(); - return combo_input($name, $selected_id, $sql, 'branch_code', 'br_name', + return combo_input($name, $selected_id, $sql, 'branch_code', 'branch_ref', array( 'where' => $where, 'order' => array('branch_ref'), -- 2.30.2