No display of shipping if there are no shipping costs on sales documents or views.
[fa-stable.git] / sales / view / view_dispatch.php
index d089282b3a95d282272bd2f9d850fee599be11fa..260212853ebb3e0d84aee3d4fd4ad9d9a12205e6 100644 (file)
@@ -150,10 +150,11 @@ if (db_num_rows($result) > 0)
 else
        display_note(_("There are no line items on this dispatch."), 1, 2);
 
-$display_freight = price_format($myrow["ov_freight"]);
-
-label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right");
-
+if ($myrow['ov_freight'] != 0.0)
+{
+       $display_freight = price_format($myrow["ov_freight"]);
+       label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right");
+}
 $tax_items = get_trans_tax_details(ST_CUSTDELIVERY, $trans_id);
 display_customer_trans_tax_details($tax_items, 6);