X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=taxes%2Ftax_groups.php;h=398d6255f485aff7b1e32db5cd13c8435585e4d4;hb=65c68ebb3a09aa06418fb7f5e1712ca8012d756f;hp=fdc065101a2b68ec224448d996128647102921b9;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index fdc06510..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; } } } @@ -218,7 +220,8 @@ for ($i = 0; $i < 5; $i++) if (!isset($_POST['rate' . $i]) || $_POST['rate' . $i] == "") $_POST['rate' . $i] = percent_format($default_rate); - small_amount_cells(null, 'rate' . $i, $_POST['rate' . $i]); + small_amount_cells(null, 'rate' . $i, $_POST['rate' . $i], null, null, + user_percent_dec()); } end_row(); }