X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fui%2Fgl_journal_ui.inc;h=34c1e8418e3d69f8b554998cf61a9df1eb3e8fde;hb=534d4b6a6b5e771f3b61e0fc65afd856760a6408;hp=44762f7e753e4c1c902206f2c800a7a0cc36de3c;hpb=c23ac0e7ff87228e01c3f84ba72aac9084b7c88e;p=fa-stable.git diff --git a/gl/includes/ui/gl_journal_ui.inc b/gl/includes/ui/gl_journal_ui.inc index 44762f7e..34c1e841 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(''); @@ -256,12 +254,13 @@ function gl_edit_item_controls(&$order, $dim, $sub_accounts, $Index=null) dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1); if ($dim > 1) dimensions_list_cells(null, 'dimension2_id', null, true, " ", false, 2); + $_POST['LineMemo'] = ""; } if (get_post('_code_id_update')) { $Ajax->activate('code_id'); - set_focus($sub_accounts ? 'person_id' : 'AmountDebit'); + set_focus($sub_accounts ? 'person_id' : ($dim < 1 ? 'AmountDebit' : 'dimension_id')); } if ($dim < 1) hidden('dimension_id', 0);