[-] WS: Fix #PSCFI-7009 product prices on orders with specific prices
This commit is contained in:
1 parent
d64b5efd10
commit
1838003353
1 file changed
+3
-1
@@ -240,6 +240,8 @@ class OrderCore extends ObjectModel
|
|||||||
'product_quantity' => array('required' => true),
|
'product_quantity' => array('required' => true),
|
||||||
'product_name' => array('setter' => false),
|
'product_name' => array('setter' => false),
|
||||||
'product_price' => 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()
|
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`
|
FROM `'._DB_PREFIX_.'order_detail`
|
||||||
WHERE id_order = '.(int)$this->id;
|
WHERE id_order = '.(int)$this->id;
|
||||||
$result = Db::getInstance()->executeS($query);
|
$result = Db::getInstance()->executeS($query);
|
||||||
|
|||||||
Reference in new issue
Block a user