From 59f791d0dc38ebb9f81d6178983ab71849f21616 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 4 Feb 2010 14:48:29 +0000 Subject: [PATCH] Better sorting in new gl types and gl accounts --- CHANGELOG.txt | 1 + includes/ui/ui_lists.inc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 201c16b0..1a2abca2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -26,6 +26,7 @@ $ /gl/manage/gl_account_classes.php /gl/manage/gl_account_types.php /gl/manage/gl_accounts.php /gl/includes/db/gl_db_account_types.inc + /includes/ui/ui_lists.inc /sql/alter2.3.sql /sql/en_US-demo.sql /sql/en_US-new.sql diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index e4f14c1a..5d879897 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1529,7 +1529,7 @@ function gl_account_types_list($name, $selected_id=null, $all_option=false, $all return combo_input($name, $selected_id, $sql, 'id', 'name', array( - 'order' => 'id', + 'order' => 'class_id', 'id', 'spec_option' =>$all_option, 'spec_id' => $all_option_numeric ? 0 : $all_items ) ); @@ -1575,7 +1575,7 @@ function gl_all_accounts_list($name, $selected_id=null, $skip_bank_accounts=fals 'format' => '_format_account', 'spec_option' => $all_option===true ? _("Use Item Sales Accounts") : $all_option, 'spec_id' => '', - 'order' => array('type.id','account_code'), + 'order' => array('type.class_id','type.id','account_code'), 'search_box' => $cells, 'search_submit' => false, 'size' => 12, -- 2.30.2