X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=e6ded2d3a4e025315f2adc6241c7c53145d0cf6d;hb=0edc4dc9944f49ac9526fa9674f4cfe7bbff370c;hp=35cdc5baca42e319cd4e6e849c165f9e8b310885;hpb=15d91ff453f9762cf1851c89801d465feb5b216c;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 35cdc5ba..e6ded2d3 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -205,7 +205,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_no, $min, $max)) { $_SESSION['Items']->line_items[$line_no]->qty_dispatched =