X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fsupplier_trans_gl.php;h=b2b827fee00d90de7efd34df97af26b89e4628c2;hb=ea92c9934c28216ef0a9f961228e79f6b57764cd;hp=fdec05f83f6120e926de3eb23d8d735f5fe538aa;hpb=de3a75773afa86df1739d14f24399d6f7a46f809;p=fa-stable.git diff --git a/purchasing/supplier_trans_gl.php b/purchasing/supplier_trans_gl.php index fdec05f8..b2b827fe 100644 --- a/purchasing/supplier_trans_gl.php +++ b/purchasing/supplier_trans_gl.php @@ -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; } }