Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with decimals
12-01-2016, 04:09 AM
Post: #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!
Find all posts by this user
Quote this message in a reply
12-01-2016, 08:58 AM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2016, 03:30 AM
Post: #3
RE: problems with decimals
it did not help... it gave me the same error message :-(
thanks
Find all posts by this user
Quote this message in a reply
12-02-2016, 09:30 AM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)