X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice_grns.php;h=13f4d3040b78c7182b9b6c1d3668243e1ed07fdc;hb=6183e9450dcd7e4c747889c10903f6ff1b0add33;hp=3ba94c099f260d489b8802d05857a1c5f5b195f7;hpb=3b17c0a9c6a20e8d4bf3fccc4c8215f9c16f674c;p=fa-stable.git diff --git a/purchasing/supplier_invoice_grns.php b/purchasing/supplier_invoice_grns.php index 3ba94c09..13f4d304 100644 --- a/purchasing/supplier_invoice_grns.php +++ b/purchasing/supplier_invoice_grns.php @@ -36,12 +36,14 @@ function check_data() if (!check_num('this_quantity_inv', 0) || input_num('this_quantity_inv')==0) { display_error( _("The quantity to invoice must be numeric and greater than zero.")); + set_focus('this_quantity_inv'); return false; } if (!check_num('ChgPrice')) { display_error( _("The price is not numeric.")); + set_focus('ChgPrice'); return false; } @@ -54,6 +56,7 @@ function check_data() { display_error(_("The price being invoiced is more than the purchase order price by more than the allowed over-charge percentage. The system is set up to prohibit this. See the system administrator to modify the set up parameters if necessary.") . _("The over-charge percentage allowance is :") . sys_prefs::over_charge_allowance() . "%"); + set_focus('ChgPrice'); return false; } } @@ -66,6 +69,7 @@ function check_data() { display_error( _("The quantity being invoiced is more than the outstanding quantity by more than the allowed over-charge percentage. The system is set up to prohibit this. See the system administrator to modify the set up parameters if necessary.") . _("The over-charge percentage allowance is :") . sys_prefs::over_charge_allowance() . "%"); + set_focus('this_quantity_inv'); return false; } }