diff --git a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
index 54d7c49c7..bbb0329fe 100644
--- a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -907,6 +907,7 @@
{assign var=total_rooms_tax_only value=(($total_rooms_price_tax_incl - $total_rooms_price_tax_excl) - $tourism_tax_room)}
{assign var=total_convenience_fee_tax_only value=($total_convenience_fee_vat_incl - $total_convenience_fee_tax_excl)}
{assign var=total_products_tax_only value=(($total_products_price_tax_incl - $total_products_price_tax_excl) - $tourism_tax_products)}
+ {assign var=total_room_services_tax_only value=((($total_room_services_tax_incl - $total_room_services_tax_excl) - ($total_convenience_fee_tax_incl - $total_convenience_fee_tax_excl)) - $tourism_tax_service)}
{if $total_rooms_price_tax_excl}
@@ -998,11 +999,11 @@
{/if}
- {if isset($total_room_services_tax_incl) && (($total_room_services_tax_incl - $total_room_services_tax_excl) - ($total_convenience_fee_tax_incl - $total_convenience_fee_tax_excl)) > 0}
+ {if isset($total_room_services_tax_incl) && $total_room_services_tax_only > 0}
| {l s='Extra services Tax'} |
- {displayPrice price=(($total_room_services_tax_incl - $total_room_services_tax_excl) - ($total_convenience_fee_tax_incl - $total_convenience_fee_tax_excl)) currency=$currency->id}
+ {displayPrice price=$total_room_services_tax_only currency=$currency->id}
|
|
diff --git a/classes/pdf/HTMLTemplateBookingVoucher.php b/classes/pdf/HTMLTemplateBookingVoucher.php
index d4f35fe07..2cea81c39 100644
--- a/classes/pdf/HTMLTemplateBookingVoucher.php
+++ b/classes/pdf/HTMLTemplateBookingVoucher.php
@@ -177,10 +177,12 @@ class HTMLTemplateBookingVoucherCore extends HTMLTemplate
);
if (isset($additionalServices[(int)$booking['id']]['additional_services'])) {
foreach ($additionalServices[(int)$booking['id']]['additional_services'] as $service) {
+ $isServiceCancelled = !empty($service['is_cancelled']) || !empty($service['is_refunded'])
+ || (float)$service['total_price_tax_excl'] <= 0;
$bookingServices[] = array(
'name' => $service['name'],
'quantity' => (int)$service['quantity'],
- 'unit_price_tax_excl' => (float)$service['unit_price_tax_excl'],
+ 'unit_price_tax_excl' => $isServiceCancelled ? 0 : (float)$service['unit_price_tax_excl'],
'total_price_tax_excl' => (float)$service['total_price_tax_excl'],
'allow_multiple_quantity' => (int)$service['allow_multiple_quantity'],
);