Journal Entry - Cursor skips through dimension field. Fixed.
authorJoe <joe.hunt.consulting@gmail.com>
Wed, 13 Apr 2022 06:02:40 +0000 (08:02 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Wed, 13 Apr 2022 06:02:40 +0000 (08:02 +0200)
gl/includes/ui/gl_journal_ui.inc

index 060524102a1fbafa49c2242418eae2a68481a745..34c1e8418e3d69f8b554998cf61a9df1eb3e8fde 100644 (file)
@@ -260,7 +260,7 @@ function gl_edit_item_controls(&$order, $dim, $sub_accounts, $Index=null)
        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);