webERP Forum

Full Version: problems with decimals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
manufacturing - I´m not able to receive a product with lot when the quantity has decimals - exemplo 2.8 - it gives an error message saying "qty must be a number"

this kind of decimals problem also happens when adjusting quantities (increase or decrease)

please help!
Try changing line 114 (or thereabouts) of WorkOrderReceive.php from

if(isset($_POST['Qty' . $i]) AND trim($_POST['Qty' . $i]) != '' AND !is_numeric($_POST['Qty' . $i])) {

to

if(isset($_POST['Qty' . $i]) AND trim($_POST['Qty' . $i]) != '') {

and see if that helps.
Tim
it did not help... it gave me the same error message :-(
thanks
Yes, sorry I see that now that I look properly at the code.
Can you comment out (add // to the start of the line) all 4 lines of that section:

if(isset($_POST['Qty' . $i]) AND trim($_POST['Qty' . $i]) != '' AND !is_numeric($_POST['Qty' . $i])) {
$InputError = true;
prnMsg(_('The quantity entered is not numeric - a number is expected'),'error');
}

Thanks
Tim