[0000095] Bad behaviour of routine number_format and round in Windows.
[fa-stable.git] / reporting / rep107.php
index 1288e5173e6a0fa90192d049ee7b7c606978bd90..05b28c3fdaf68f85636d1127c7edbbbcd311e328 100644 (file)
@@ -104,7 +104,7 @@ function print_invoices()
                        $SubTotal = 0;
                        while ($myrow2=db_fetch($result))
                        {
-                               $Net = round($sign * ((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]),
+                               $Net = round2($sign * ((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]),
                                   user_price_dec());
                                $SubTotal += $Net;
                        $DisplayPrice = number_format2($myrow2["unit_price"],$dec);