Some more fixes related to ajax combos behaviour and usage
[fa-stable.git] / purchasing / supplier_credit_grns.php
index 3d18c98ae93c451f8e0d1f01a33277297b8b783f..373e7676762d3dab7572de075662a01cb71ace8d 100644 (file)
@@ -32,12 +32,14 @@ function check_data()
        if (!check_num('This_QuantityCredited', 0)) 
        {
                display_error(_("The quantity to credit must be numeric and greater than zero."));
+               set_focus('This_QuantityCredited');
                return false;
        }
 
        if (!check_num('ChgPrice', 0))
        {
                display_error(_("The price is either not numeric or negative."));
+               set_focus('ChgPrice');
                return false;
        }