Focus corrections in gl_*.php
[fa-stable.git] / gl / gl_payment.php
index 12d05480f5dbf4b393e2b70947b296f85fc4879b..39cd602193b5bdb72aaa98ce651decc4876be12a 100644 (file)
@@ -17,7 +17,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-set_focus('CodeID2');
+set_focus('_code_id_edit');
 page(_("Bank Account Payment Entry"), false, false, '', $js);
 
 //-----------------------------------------------------------------------------------------------
@@ -244,9 +244,13 @@ end_table(1);
 
 if (!isset($_POST['Process']))
 {
-    submit_center_first('Update', _("Update"));
        if ($_SESSION['pay_items']->count_gl_items() >= 1)
+       {
+       submit_center_first('Update', _("Update"));
            submit_center_last('Process', _("Process Payment"));
+       }
+       else
+       submit_center('Update', _("Update"));
 }
 
 end_form();