No display of shipping if there are no shipping costs on sales documents or views.
[fa-stable.git] / sales / view / view_sales_order.php
index 3276b9582b89fb0a45e391dc207b98dbdac431a5..5c925b26c676f5abf0ab852750d216ec11eba387 100644 (file)
@@ -224,8 +224,9 @@ foreach ($_SESSION['View']->line_items as $stock_item) {
        end_row();
 }
 
-label_row(_("Shipping"), price_format($_SESSION['View']->freight_cost),
-       "align=right colspan=6", "nowrap align=right", 1);
+if ($_SESSION['View']->freight_cost != 0.0)
+       label_row(_("Shipping"), price_format($_SESSION['View']->freight_cost),
+               "align=right colspan=6", "nowrap align=right", 1);
 
 $sub_tot = $_SESSION['View']->get_items_total() + $_SESSION['View']->freight_cost;