Fixed change of Item list in purchase order
[fa-stable.git] / purchasing / supplier_trans_gl.php
index fdec05f83f6120e926de3eb23d8d735f5fe538aa..b2b827fee00d90de7efd34df97af26b89e4628c2 100644 (file)
@@ -48,6 +48,7 @@ if (isset($_POST['AddGLCodeToTrans'])){
        if (db_num_rows($result) == 0)
        {
                display_error(_("The account code entered is not a valid code, this line cannot be added to the transaction."));
+               set_focus('gl_code');
                $input_error = true;
        }
        else
@@ -57,6 +58,7 @@ if (isset($_POST['AddGLCodeToTrans'])){
                if (!check_num('amount'))
                {
                        display_error(_("The amount entered is not numeric. This line cannot be added to the transaction."));
+                       set_focus('amount');
                        $input_error = true;
                }
        }