X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Ftax_groups.php;h=398d6255f485aff7b1e32db5cd13c8435585e4d4;hb=3a1f2b3032483a04ffca4bb037ddb5c73d4730a7;hp=f04e0bfa3ecb13a8a16b75c3ec27b3f4ab194670;hpb=de3a75773afa86df1739d14f24399d6f7a46f809;p=fa-stable.git diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index f04e0bfa..398d6255 100644 --- a/taxes/tax_groups.php +++ b/taxes/tax_groups.php @@ -38,6 +38,7 @@ if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM'])) { $input_error = 1; display_error(_("The tax group name cannot be empty.")); + set_focus('name'); } else { @@ -48,9 +49,10 @@ if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM'])) $_POST['tax_type_id' . $i] != reserved_words::get_all_numeric() && !check_num('rate' . $i, 0)) { - display_error( _("An entered tax rate is invalid or less than zero.")); + display_error( _("An entered tax rate is invalid or less than zero.")); $input_error = 1; - break; + set_focus('rate'); + break; } } }