diff --git a/classes/pdf/HTMLTemplateInvoice.php b/classes/pdf/HTMLTemplateInvoice.php index 7c9494d8b..70284fd87 100644 --- a/classes/pdf/HTMLTemplateInvoice.php +++ b/classes/pdf/HTMLTemplateInvoice.php @@ -169,7 +169,11 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate $order_detail['unit_price_tax_excl_before_specific_price'] = $order_detail['unit_price_tax_excl_including_ecotax'] + $order_detail['reduction_amount_tax_excl']; } elseif ($order_detail['reduction_percent'] > 0) { $has_discount = true; - $order_detail['unit_price_tax_excl_before_specific_price'] = (100 * $order_detail['unit_price_tax_excl_including_ecotax']) / (100 - $order_detail['reduction_percent']); + if ($order_detail['reduction_percent'] >= 100) { + $order_detail['unit_price_tax_excl_before_specific_price'] = $order_detail['original_product_price']; + } else { + $order_detail['unit_price_tax_excl_before_specific_price'] = (100 * $order_detail['unit_price_tax_excl_including_ecotax']) / (100 - $order_detail['reduction_percent']); + } } // Set tax_code diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index 347cab3f9..f2d03ddae 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -161,7 +161,7 @@ {/block} {block name='blockcart_shopping_cart_total_convenience_fee'} {if isset($total_convenience_fee)} -
+ @@ -343,7 +343,7 @@
--> {block name='blockcart_layer_cart_total_convenience_fee'} {if isset($total_convenience_fee)} -
+
+ {if $active_report == 'payment-method'} +
+ +
+ +
+
+ {else}
@@ -48,6 +63,7 @@ placeholder="{l s='All sources' mod='qlohotelreports'}">
+ {/if}

diff --git a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl index b16637ee7..10a7a5bea 100644 --- a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl +++ b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl @@ -161,8 +161,8 @@ {/if} {/block} {block name='blockcart_shopping_cart_total_convenience_fee'} - {if isset($total_convenience_fee) && $total_convenience_fee} -
+ {if isset($total_convenience_fee)} + @@ -343,8 +343,8 @@
--> {block name='blockcart_layer_cart_total_convenience_fee'} - {if isset($total_convenience_fee) && $total_convenience_fee} -
+ {if isset($total_convenience_fee)} +