Customer/branch list was searched on name and not reference.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 30 May 2011 16:05:57 +0000 (18:05 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 30 May 2011 16:05:57 +0000 (18:05 +0200)
includes/ui/ui_lists.inc

index 14eb54436083283ba3f40cbaa5d4355ea2a499bc..808e7557549e099b3d3407ca31465995d0e5caf6 100644 (file)
@@ -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'),