Bug in adding freight cost to sales order/quotation
[fa-stable.git] / sales / inquiry / sales_orders_view.php
index f554f25e838c124b6426b3e3eeac9ed5f82bf5f0..ec0091232d96aba87076f866f672dfec6c59d88c 100644 (file)
@@ -256,7 +256,7 @@ $sql = "SELECT
                ."sorder.ord_date,
                sorder.delivery_date,
                sorder.deliver_to,
-               Sum(line.unit_price*line.quantity*(1-line.discount_percent)+freight_cost) AS OrderValue,
+               Sum(line.unit_price*line.quantity*(1-line.discount_percent))+freight_cost AS OrderValue,
                sorder.type,
                debtor.curr_code,
                Sum(line.qty_sent) AS TotDelivered,