} else {
$min = 0;
// Fixing floating point problem in PHP.
- $max = round2($itm->quantity - $itm->qty_done, get_unit_dec($itm->stock_id));
+ $max = round2($itm->quantity - $itm->qty_done, get_qty_dec($itm->stock_id));
}
if (check_num('Line'.$line, $min, $max)) {
set_focus('Line'.$line);
$ok = 0;
}
-
}
if (isset($_POST['Line'.$line.'Desc'])) {