{{ name|trans({}, translationDomain) }} :
{% if startDate is not empty %}
{{ 'total.period_from'|trans({}, 'AnalysisAccountingTrans') }} {{ startDate|localizeddate('medium', 'none')}}
{% if endDate is not empty %}
{{ 'total.period_to'|trans({}, 'AnalysisAccountingTrans') }} {{ endDate|localizeddate('medium', 'none')}}
{% endif %}
{% endif %}
...
{% endmacro %}
{% macro getSubList(taxes, key, callbackQueryObjectPrefix) %}
{% set currentZoneId = null %}
{% set currentZoneName = null %}
{% set prefixedName = callbackQueryObjectPrefix ~ key[:1]|upper ~ key[1:] %}
{% for tax in taxes %}
{% set zoneCountry = tax.zoneCountry %}
{% set zone = zoneCountry.zone %}
{% set zoneSwitched = currentZoneName is not null and currentZoneId != zone.id %}
{% if currentZoneId is null or zoneSwitched == true %}
{% if zoneSwitched == true %}
{{ 'tax.name.misc'|trans({}, 'CommonTrans') }} :
...
{% endif %}
{{ zone.name|trans({}, 'CommonTrans') }} :
...
{% set currentZoneId = zone.id %}
{% set currentZoneName = zone.name %}
{% endif %}