X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=35cdc5baca42e319cd4e6e849c165f9e8b310885;hb=b57cb5b1684ef37a62a70466a789d2594a7292d5;hp=7b05aa2de784e518dad8dae46acb29fcd17b57ea;hpb=ed3db2c39e10b295db0391096dd233c1aaa2b108;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 7b05aa2d..35cdc5ba 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -203,10 +203,8 @@ 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)); } if (check_num('Line'.$line_no, $min, $max)) {