diff --git a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl index 17cf1903f..493123c86 100644 --- a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl @@ -147,7 +147,7 @@ {if ($can_edit)}
+
{l s='No group created'}
{/if} \ No newline at end of file diff --git a/classes/order/OrderDetail.php b/classes/order/OrderDetail.php index 96f932f3a..29ba8750c 100644 --- a/classes/order/OrderDetail.php +++ b/classes/order/OrderDetail.php @@ -503,7 +503,7 @@ class OrderDetailCore extends ObjectModel $this->product_price_calculation_method, $cartServiceItem['date_from'], $cartServiceItem['date_to'] - ); + ); $itemQuantity = (isset($cartServiceItem['quantity']) ? $cartServiceItem['quantity'] : 0) * $itemNumDays; $quantity += $itemQuantity; $totalPriceTaxExcl += $itemQuantity * (isset($cartServiceItem['unit_price_tax_excl']) ? $cartServiceItem['unit_price_tax_excl'] : 0); @@ -527,7 +527,7 @@ class OrderDetailCore extends ObjectModel if (isset($quantity) && isset($unit_price_tax_excl)) { foreach ($this->tax_calculator->getTaxesAmount($unit_price_tax_excl) as $id_tax => $amount) { - $total_amount = Tools::processPriceRounding($amount, $quantity, $order->round_type, $order->round_mode); + $total_amount = $amount * $quantity; $values .= '('.(int)$order->id.','.(int)$this->id.',0,0,'.(int)$id_tax.','.(float)$amount.','.(float)$total_amount.',NOW()),'; } @@ -561,7 +561,7 @@ class OrderDetailCore extends ObjectModel foreach ($this->tax_calculator->getTaxesAmount($this->unit_price_tax_excl) as $id_tax => $amount) { - $total_amount = Tools::processPriceRounding($amount, $this->product_quantity, $order->round_type, $order->round_mode); + $total_amount = $amount * $this->product_quantity; $values .= '('.(int)$order->id.','.(int)$this->id.',0,0,'.(int)$id_tax.','.(float)$amount.','.(float)$total_amount.',NOW()),'; } diff --git a/modules/dashproducts/dashproducts.php b/modules/dashproducts/dashproducts.php index a0ec4bf8d..76ee016ff 100644 --- a/modules/dashproducts/dashproducts.php +++ b/modules/dashproducts/dashproducts.php @@ -255,7 +255,6 @@ class DashProducts extends Module hbd.`id_product`, hbd.`room_type_name` AS `product_name`, COUNT(hbd.`id_room`) AS `total`, - hbd.`total_price_tax_excl` AS `price`, SUM(hbd.`total_price_tax_excl`) AS `sales` FROM `'._DB_PREFIX_.'htl_booking_detail` hbd LEFT JOIN `'._DB_PREFIX_.'orders` o ON (o.`id_order` = hbd.`id_order`) @@ -285,8 +284,6 @@ class DashProducts extends Module $img = ImageManager::thumbnail($path_to_image, 'product_mini_'.$product_obj->id.'.'.$this->context->controller->imageType, 45, $this->context->controller->imageType); } - $productPrice = $product['price']; - $body[] = array( array( 'id' => 'product', @@ -297,8 +294,7 @@ class DashProducts extends Module 'id' => 'product', 'value' => ''. - Tools::htmlentitiesUTF8($product['product_name']).''. - '