X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_trans_gl.php;h=b2b827fee00d90de7efd34df97af26b89e4628c2;hb=8fd0c50cc4a19a07c61ee87a632377419d096a5a;hp=1e120b45587c19d0e1693519b5f7adf8f139c7b3;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/purchasing/supplier_trans_gl.php b/purchasing/supplier_trans_gl.php index 1e120b45..b2b827fe 100644 --- a/purchasing/supplier_trans_gl.php +++ b/purchasing/supplier_trans_gl.php @@ -3,10 +3,10 @@ $page_security=5; $path_to_root=".."; -include($path_to_root . "/purchasing/includes/supp_trans_class.inc"); -include($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/purchasing/includes/supp_trans_class.inc"); +include_once($path_to_root . "/includes/session.inc"); -include($path_to_root . "/purchasing/includes/purchasing_ui.inc"); +include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc"); $js = ""; if ($use_date_picker) $js .= get_js_date_picker(); @@ -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; } }