diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
index 9d83f4482..0053d2631 100644
--- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -902,7 +902,8 @@
- {* Assign order price *}
+
+ {* Assign order price *}
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
{assign var=order_product_price value=($order->total_products)}
{assign var=order_discount_price value=$order->total_discounts_tax_excl}
diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php
index e39aa34b6..6745a0e2d 100644
--- a/classes/PaymentModule.php
+++ b/classes/PaymentModule.php
@@ -1427,10 +1427,8 @@ abstract class PaymentModuleCore extends Module
// extra services
$additional_service_price_tax_excl = (float) $cart_booking_data['total_extra_demands_te'];
$additional_service_price_tax_incl = (float) $cart_booking_data['total_extra_demands_ti'];
- foreach ($roomRelatedSellingTypes as $sellingType) {
- $additional_service_price_tax_excl += $order->getTotalProductsWithoutTaxes(false, false, $sellingType, 0, Product::PRICE_ADDITION_TYPE_INDEPENDENT);
- $additional_service_price_tax_incl += $order->getTotalProductsWithTaxes(false, false, $sellingType, 0, Product::PRICE_ADDITION_TYPE_INDEPENDENT);
- }
+ $additional_service_price_tax_excl += $order->getTotalProductsWithoutTaxes(false, false, null, 0, Product::PRICE_ADDITION_TYPE_INDEPENDENT, null, Order::SERVICE_PRODUCT_CONTEXT_ROOM_LINKED);
+ $additional_service_price_tax_incl += $order->getTotalProductsWithTaxes(false, false, null, 0, Product::PRICE_ADDITION_TYPE_INDEPENDENT,null,Order::SERVICE_PRODUCT_CONTEXT_ROOM_LINKED);
$additional_service_tax = ($additional_service_price_tax_incl - $additional_service_price_tax_excl);
// convenience fee price
diff --git a/classes/order/Order.php b/classes/order/Order.php
index 5ccfe9cba..ca9ef9327 100644
--- a/classes/order/Order.php
+++ b/classes/order/Order.php
@@ -635,21 +635,10 @@ class OrderCore extends ObjectModel
if (!$is_booking && $selling_preference_type !== null) {
$sql .= ' AND od.`selling_preference_type` = '. (int)$selling_preference_type;
}
- if (
- !$is_booking
- && $selling_preference_type !== null
- && Product::isSellableWithRoomType($selling_preference_type)
- && $product_auto_add !== null
- ) {
+ if (!$is_booking && $product_auto_add !== null) {
$sql .= ' AND od.`product_auto_add` = '. (int)$product_auto_add;
}
- if (
- !$is_booking
- && $selling_preference_type !== null
- && Product::isSellableWithRoomType($selling_preference_type)
- && $product_auto_add == 1
- && $product_price_addition_type !== null
- ) {
+ if (!$is_booking && $product_auto_add == 1 && $product_price_addition_type !== null) {
$sql .= ' AND od.`product_price_addition_type` = '. (int)$product_price_addition_type;
}