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! |
|||
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 |
|||
12-02-2016, 03:30 AM
Post: #3
|
|||
|
|||
RE: problems with decimals
it did not help... it gave me the same error message :-(
thanks |
|||
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)