2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by urtrivedi
0

line 63 change it as following we make quantity 0 if use keep it blank

if(trim(=$_REQUEST["es_quantity"])=='') 
        $es_quantity="0";
else
    $es_quantity=$_REQUEST["es_quantity"];

112-116 comment 4 lines

/*
if ( !is_numeric($es_quantity) || ($es_quantity < 0) )
        {
            $errs[$errcnt]="$Quantity_must_be_non_zero_positive_integer";
            $errcnt++;
        }
*/

replace 709 to 715 by following code

       if(frm.es_quantity.value!='') 
       {
                if( isNaN(frm.es_quantity.value) || frm.es_quantity.value<0)
                {
                    alert('Please specify Quantity as a non-negative integer');
                    frm.es_quantity.focus();
                    frm.es_quantity.select();
                    return(false);
                }   
         }

Edited by urtrivedi

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.