[0000095] Bad behaviour of routine number_format and round in Windows.
[fa-stable.git] / sales / view / view_invoice.php
index f14e0ced9f75925bdc797da922478fe0e044d906..1d90396bf42de7ff9d96e651ce19a4891f818b2f 100644 (file)
@@ -111,7 +111,7 @@ if (db_num_rows($result) > 0)
            if($myrow2["quantity"]==0) continue;
                alt_table_row_color($k);
 
-               $value = round(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]),
+               $value = round2(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]),
                   user_price_dec());
                $sub_total += $value;