X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=inventory%2Fmanage%2Fitem_units.php;h=ce5f50d0de6ef45680f803e43232c313957a2dfe;hb=deb258224a97804610393ef563d45b5af5c5243a;hp=0df22f8e903b5922f53706a852064ac51fff66f0;hpb=512f9dbe2a3dc1282358c6641ebd715e1bae5136;p=fa-stable.git diff --git a/inventory/manage/item_units.php b/inventory/manage/item_units.php index 0df22f8e..ce5f50d0 100644 --- a/inventory/manage/item_units.php +++ b/inventory/manage/item_units.php @@ -31,16 +31,19 @@ if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM'])) { $input_error = 1; display_error(_("The unit of measure code cannot be empty.")); + set_focus('abbr'); } if (strlen($_POST['description']) == 0) { $input_error = 1; display_error(_("The unit of measure description cannot be empty.")); + set_focus('description'); } if (!is_numeric($_POST['decimals'])) { $input_error = 1; display_error(_("The number of decimal places must be integer.")); + set_focus('decimals'); } @@ -121,7 +124,7 @@ if (isset($selected_id) && item_unit_used($selected_id)) { } else text_row(_("Unit Abbreviation:"), 'abbr', null, 20, 20); text_row(_("Descriptive Name:"), 'description', null, 40, 40); -text_row(_("Decimal Places:"), 'decimals', null, 40, 40); +text_row(_("Decimal Places:"), 'decimals', null, 3, 3); end_table(1);