Code cleanup (fixed parametr lists in gl_all_accounts_list_row and calls to subledger...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 14 Dec 2021 08:47:22 +0000 (09:47 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 14 Dec 2021 08:50:13 +0000 (09:50 +0100)
gl/includes/ui/gl_journal_ui.inc
includes/ui/ui_lists.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('');
index 1d804985bff59a491343a73c0965bb81050f7169..c83150d697c7ae4a4b0548aaa0426a02d6762faa 100644 (file)
@@ -1863,11 +1863,11 @@ function gl_all_accounts_list_cells($label, $name, $selected_id=null,
 }
 
 function gl_all_accounts_list_row($label, $name, $selected_id=null, 
-       $skip_bank_accounts=false, $cells=false, $all_option=false, $type_id=false)
+       $skip_bank_accounts=false, $cells=false, $all_option=false, $submit_on_change=false, $all=false, $type_id=false)
 {
        echo "<tr><td class='label'>$label</td>";
        gl_all_accounts_list_cells(null, $name, $selected_id, 
-               $skip_bank_accounts, $cells, $all_option, $type_id);
+               $skip_bank_accounts, $cells, $all_option, $submit_on_change, $all, $type_id);
        echo "</tr>\n";
 }