X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fcustomer_invoice.php;h=e6ded2d3a4e025315f2adc6241c7c53145d0cf6d;hb=9a4dbbda763486152d2e98485a7a2a699426141d;hp=7b05aa2de784e518dad8dae46acb29fcd17b57ea;hpb=ed3db2c39e10b295db0391096dd233c1aaa2b108;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 7b05aa2d..e6ded2d3 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -203,11 +203,9 @@ function check_quantities() $min = $itm->qty_done; $max = $itm->quantity; } else { - global $path_to_root; $min = 0; // Fixing floating point problem in PHP. - include_once($path_to_root . "/inventory/includes/db/items_units_db.inc"); - $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_no, $min, $max)) { $_SESSION['Items']->line_items[$line_no]->qty_dispatched =