Added rounding when needed to avoid document inconsistency
[fa-stable.git] / sales / includes / ui / sales_order_ui.inc
index 23a2fc1878bd338dd0bd613298bf4ea0d2cd4f90..9329f81686c5732a06ce3168d0c34a8c99ab128e 100644 (file)
@@ -100,7 +100,8 @@ function display_order_summary($title, &$order, $editable_items=false)
        foreach ($order->line_items as $line_no=>$stock_item)
        {
 
-               $line_total = $stock_item->qty_dispatched * $stock_item->price * (1 - $stock_item->discount_percent);
+               $line_total = round($stock_item->qty_dispatched * $stock_item->price * (1 - $stock_item->discount_percent),
+                  user_price_dec());
 
                if (!isset($_GET['Edit']))
                        $id = -1;