[-] WS: Fix #PSCFI-7009 product prices on orders with specific prices

This commit is contained in:
Rémi Gaillard
2013-06-10 16:59:02 +02:00
parent d64b5efd10
commit 1838003353
+3 -1
View File
@@ -240,6 +240,8 @@ class OrderCore extends ObjectModel
'product_quantity' => array('required' => true),
'product_name' => array('setter' => false),
'product_price' => array('setter' => false),
'unit_price_tax_incl' => array('setter' => false),
'unit_price_tax_excl' => array('setter' => false),
)),
),
@@ -1287,7 +1289,7 @@ class OrderCore extends ObjectModel
public function getWsOrderRows()
{
$query = 'SELECT id_order_detail as `id`, `product_id`, `product_price`, `id_order`, `product_attribute_id`, `product_quantity`, `product_name`
$query = 'SELECT id_order_detail as `id`, `product_id`, `product_price`, `id_order`, `product_attribute_id`, `product_quantity`, `product_name`, `unit_price_tax_incl`, `unit_price_tax_excl`
FROM `'._DB_PREFIX_.'order_detail`
WHERE id_order = '.(int)$this->id;
$result = Db::getInstance()->executeS($query);