Fixed a layout bug in footer.inc
[fa-stable.git] / inventory / manage / item_units.php
index 0df22f8e903b5922f53706a852064ac51fff66f0..ce5f50d0de6ef45680f803e43232c313957a2dfe 100644 (file)
@@ -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);