From: Janusz Dobrowolski Date: Tue, 14 Dec 2021 08:47:22 +0000 (+0100) Subject: Code cleanup (fixed parametr lists in gl_all_accounts_list_row and calls to subledger... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=40acce2851269a49d43e2082d7a09058a856a81b Code cleanup (fixed parametr lists in gl_all_accounts_list_row and calls to subledger__list_cells) --- diff --git a/gl/includes/ui/gl_journal_ui.inc b/gl/includes/ui/gl_journal_ui.inc index 69ed170c..06052410 100644 --- a/gl/includes/ui/gl_journal_ui.inc +++ b/gl/includes/ui/gl_journal_ui.inc @@ -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(''); diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 1d804985..c83150d6 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -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 "$label"; 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 "\n"; }