From: Janusz Dobrowolski Date: Mon, 31 Aug 2009 13:47:15 +0000 (+0000) Subject: Added security_roles list, changed gl acount list order to class id X-Git-Tag: v2.4.2~19^2~1285 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=80e6e9ca91b695677c5e7ebc5c4569c5e0b698e0;p=fa-stable.git Added security_roles list, changed gl acount list order to class id --- diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index ad7a2cb5..4498a1bd 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1531,14 +1531,14 @@ function gl_all_accounts_list($name, $selected_id=null, $skip_bank_accounts=fals $cells=false, $all_option=false, $submit_on_change=false, $all=false) { if ($skip_bank_accounts) - $sql = "SELECT chart.account_code, chart.account_name, type.name, chart.inactive + $sql = "SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id FROM (".TB_PREF."chart_master chart,".TB_PREF."chart_types type) " ."LEFT JOIN ".TB_PREF."bank_accounts acc " ."ON chart.account_code=acc.account_code WHERE acc.account_code IS NULL AND chart.account_type=type.id"; else - $sql = "SELECT chart.account_code, chart.account_name, type.name, chart.inactive + $sql = "SELECT chart.account_code, chart.account_name, type.name, chart.inactive, type.id FROM ".TB_PREF."chart_master chart,".TB_PREF."chart_types type WHERE chart.account_type=type.id"; @@ -1547,7 +1547,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('name','account_code'), + 'order' => array('type.id','account_code'), 'search_box' => $cells, 'search_submit' => false, 'size' => 12, @@ -1808,15 +1808,6 @@ function pagesizes_list_row($label, $name, $value=null) echo "\n"; } -function security_headings_list_row($label, $name, $value=null) -{ - global $security_headings; - - echo "$label\n"; - array_selector( $name, $value, $security_headings ); - echo "\n"; -} - function systypes_list_cells($label, $name, $value=null, $submit_on_change=false) { global $systypes_array;