Credit note can be posted without customer selected when search customer List is...
[fa-stable.git] / sales / customer_invoice.php
index 7b05aa2de784e518dad8dae46acb29fcd17b57ea..35cdc5baca42e319cd4e6e849c165f9e8b310885 100644 (file)
@@ -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)) {