From 7dcc01e6a813b445e768bb071a469b2e261a5ba7 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 8 Apr 2012 15:02:00 +0200 Subject: [PATCH] 0001501: Price null when editing an order with a price list --- sales/includes/db/sales_order_db.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sales/includes/db/sales_order_db.inc b/sales/includes/db/sales_order_db.inc index e4eaa5c..ab7f560 100644 --- a/sales/includes/db/sales_order_db.inc +++ b/sales/includes/db/sales_order_db.inc @@ -283,7 +283,8 @@ function get_sales_order_header($order_no, $trans_type) ."stype.sales_type, " ."stype.id AS sales_type_id, " ."stype.tax_included, " - ."ship.shipper_name, " + ."stype.factor, " + ."ship.shipper_name, " ."tax_group.name AS tax_group_name , " ."tax_group.id AS tax_group_id, " ."cust.tax_id " @@ -357,7 +358,7 @@ function read_sales_order($order_no, &$order, $trans_type) $myrow["tax_group_name"], $myrow["contact_phone"]); $order->set_sales_type($myrow["sales_type_id"], $myrow["sales_type"], - $myrow["tax_included"], 0); // no default price calculations on edit + $myrow["tax_included"], $myrow["factor"]); // no default price calculations on edit $order->set_location($myrow["from_stk_loc"], $myrow["location_name"]); -- 2.30.2