Fixed language modules locale.inc integration.
[fa-stable.git] / sales / customer_delivery.php
index 77ec3136c31c04dc7b2aad91f68544fdbb820a78..c160d6d8725979197778f45b0590ab29f7dba620 100644 (file)
@@ -256,7 +256,7 @@ function check_quantities()
                        } 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)) {
@@ -266,7 +266,6 @@ function check_quantities()
                                set_focus('Line'.$line);
                                $ok = 0;
                        }
-
                }
 
                if (isset($_POST['Line'.$line.'Desc'])) {