diff --git a/admin-dev/themes/default/template/controllers/orders/_tourism_tax_actions.tpl b/admin-dev/themes/default/template/controllers/orders/_tourism_tax_actions.tpl index 7bcdcccab..e206a6d98 100644 --- a/admin-dev/themes/default/template/controllers/orders/_tourism_tax_actions.tpl +++ b/admin-dev/themes/default/template/controllers/orders/_tourism_tax_actions.tpl @@ -24,21 +24,118 @@ room table (_rooms_informaion_table.tpl) and/or a products table (_hotel_service_products_table.tpl / _standalone_service_products_table.tpl) with tourism tax columns is rendered. *} +{assign var='ttExemptRooms' value=[]} +{if isset($use_tourism_tax) && $use_tourism_tax && isset($order_detail_data) && $order_detail_data} + {foreach from=$order_detail_data item=ttRoom} + {if isset($ttRoom.tourism_tax_status) && $ttRoom.tourism_tax_status == $tourism_tax_status_applied && $ttRoom.id_status != $ROOM_STATUS_CANCELLED && !$ttRoom.is_refunded} + {append var='ttExemptRooms' value=$ttRoom} + {/if} + {/foreach} +{/if} +{assign var='ttExemptProducts' value=[]} +{if isset($use_tourism_tax) && $use_tourism_tax} + {if isset($hotel_service_products) && $hotel_service_products} + {foreach from=$hotel_service_products item=ttProduct} + {if isset($ttProduct.tourism_tax_status) && $ttProduct.tourism_tax_status == $tourism_tax_status_applied && !$ttProduct.is_refunded && !$ttProduct.is_cancelled} + {append var='ttExemptProducts' value=$ttProduct} + {/if} + {/foreach} + {/if} + {if isset($standalone_service_products) && $standalone_service_products} + {foreach from=$standalone_service_products item=ttProduct} + {if isset($ttProduct.tourism_tax_status) && $ttProduct.tourism_tax_status == $tourism_tax_status_applied && !$ttProduct.is_refunded && !$ttProduct.is_cancelled} + {append var='ttExemptProducts' value=$ttProduct} + {/if} + {/foreach} + {/if} +{/if} +