Merged changes in main trunk up to 2.0.6 (see CHANGELOG)
[fa-stable.git] / sales / view / view_invoice.php
index 17900ba267c3c3fa3acbd02eccb23244d4560362..e430b45508f2b3ac1c9728875d6b76e1bd84cc43 100644 (file)
@@ -113,7 +113,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;