Release 1.0.1 established on SourceForge, fixing the bugs and including a Date Picker...
[fa-stable.git] / includes / ui / ui_lists.inc
index 2e61861edaf8bac33774ab6a4aa2d0c7db925f0a..0eac3a11f1bf8d8d1e43e2d41956c06e9c71b39a 100644 (file)
@@ -16,7 +16,7 @@ function supplier_list($name, $selected_id, $all_option=false, $submit_on_change
 
        $company_currency = get_company_currency();
 
-       $supplier_sql = "SELECT supplier_id, supp_name, curr_code FROM ".TB_PREF."suppliers ORDER BY supplier_id";
+       $supplier_sql = "SELECT supplier_id, supp_name, curr_code FROM ".TB_PREF."suppliers ORDER BY supp_name";
        $supplier_result = db_query($supplier_sql);
 
        if ($selected_id == null)
@@ -89,7 +89,7 @@ function customer_list($name, $selected_id, $all_option=false, $submit_on_change
        else
                echo "<select name='$name'>";
 
-       $customer_sql = "SELECT debtor_no, name, curr_code FROM ".TB_PREF."debtors_master ORDER BY debtor_no";
+       $customer_sql = "SELECT debtor_no, name, curr_code FROM ".TB_PREF."debtors_master ORDER BY name";
        $customer_result = db_query($customer_sql);
 
        $company_currency = get_company_currency();