Fixed: Total and total cost mismatch due to tourism tax in the booking cart

Co-authored-by: Name <azharbhat.qlo098@webkul.in>
This commit is contained in:
amit sharma
2026-10-13 15:28:11 +05:30
parent df93538090
commit f9cd55a545
2 changed files with 7 additions and 0 deletions

View File

@@ -190,6 +190,12 @@
<td colspan="7">{l s='Total cost:'}</td>
<td class="text-right">{displayWtPriceWithCurrency price=$total_products currency=$currency}</td>
</tr>
{if $total_tourism_tax > 0}
<tr>
<td colspan="7">{l s='Tourism tax:'}</td>
<td class="text-right">{displayWtPriceWithCurrency price=$total_tourism_tax currency=$currency}</td>
</tr>
{/if}
{if $total_discounts != 0}
<tr>
<td colspan="7">{l s='Total value of vouchers:'}</td>

View File

@@ -407,6 +407,7 @@ class AdminCartsControllerCore extends AdminController
'total_discounts' => $total_discounts,
'total_wrapping' => $total_wrapping,
'total_price' => $total_price,
'total_tourism_tax' => isset($summary['total_tourism_tax']) ? $summary['total_tourism_tax'] : 0,
'total_shipping' => $total_shipping,
'customized_datas' => $customized_datas,
'tax_calculation_method' => $tax_calculation_method