From a1f9f6de1122d091e93497b8c8ce930cbab67ea0 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Wed, 28 Oct 2026 17:59:00 +0530 Subject: [PATCH 1/2] order flow and text issue fixed --- .../default/template/controllers/orders/_product_line.tpl | 2 +- .../themes/default/template/helpers/form/form_group.tpl | 2 +- modules/dashproducts/dashproducts.php | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) 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)}
- {if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && ($data.id_status == $ROOM_STATUS_CANCELLED || $data.id_status == $ROOM_STATUS_NO_SHOW)} + {if $data.id_status == $ROOM_STATUS_CANCELLED || $data.id_status == $ROOM_STATUS_NO_SHOW}
{else} -

+

{l s='No group created'}

{/if} \ No newline at end of file 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']).''. - '
'.Tools::displayPrice($productPrice), + Tools::htmlentitiesUTF8($product['product_name']).'', 'class' => 'text-center' ), array( From 5e91f96defc30a35fdcbc3449747fc77e1db0359 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Wed, 28 Oct 2026 19:22:00 +0530 Subject: [PATCH 2/2] Tax issue fixed --- classes/order/OrderDetail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()),'; }