Code cleanup (fixed parametr lists in gl_all_accounts_list_row and calls to subledger...
[fa-stable.git] / gl / includes / ui / gl_journal_ui.inc
index 69ed170ce15652ebf177d3639681ebbeca197339..060524102a1fbafa49c2242418eae2a68481a745 100644 (file)
@@ -228,8 +228,7 @@ function gl_edit_item_controls(&$order, $dim, $sub_accounts, $Index=null)
                if (is_subledger_account(get_post('code_id')))
                {       // for home currency postings show all customers
                        $sel_cur = get_post('currency', $order->currency);
-                       subledger_list_cells(null, 'person_id', get_post('code_id'), null, false, false,
-                               get_company_currency() == $sel_cur  ? null : $sel_cur);
+                       subledger_list_cells(null, 'person_id', get_post('code_id'), null);
                } elseif ($order->has_sub_accounts())
                        label_cell('');
                if ($dim >= 1) 
@@ -246,8 +245,7 @@ function gl_edit_item_controls(&$order, $dim, $sub_accounts, $Index=null)
                {
                        // for home currency postings show all customers
                        $sel_cur = get_post('currency', $order->currency);
-                       subledger_list_cells(null, 'person_id', get_post('code_id'), null, false, false,
-                               get_company_currency() == $sel_cur  ? null : $sel_cur);
+                       subledger_list_cells(null, 'person_id', get_post('code_id'), null);
                }
                elseif ($order->has_sub_accounts())
                        label_cell('');