Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with decimals
12-01-2016, 04:09 AM,
#1
problems with decimals
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!
Reply
12-01-2016, 08:58 AM,
#2
RE: problems with decimals
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
Reply
12-02-2016, 03:30 AM,
#3
RE: problems with decimals
it did not help... it gave me the same error message :-(
thanks
Reply
12-02-2016, 09:30 AM,
#4
RE: problems with decimals
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)