From: Joe Hunt Date: Thu, 4 Feb 2010 14:48:29 +0000 (+0000) Subject: Better sorting in new gl types and gl accounts X-Git-Tag: v2.4.2~19^2~963 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=59f791d0dc38ebb9f81d6178983ab71849f21616;p=fa-stable.git Better sorting in new gl types and gl accounts --- 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,