{% set range_str = "(%s - %s)"|format(start, end) %}
Overall Distribution {{ range_str }}
{% for row in overall.data() %} {% endfor %}
name bookings days percent cost ({{ currency }})
{{ row[0] }} {{ row[1] }} {{ row[2] }} {{ row[3] }} {{ row[4] }}
CEM Distribution {{ range_str }}
{% for row in cem.data() %} {% set alias = app_dict[row[0]] %} {% endfor %}
name bookings days percent cost ({{ currency }})
{{ row[0] }} {% if alias %} ({{ alias }}) {% endif %} {{ row[1] }} {{ row[2] }} {{ row[3] }} {{ row[4] }}
{{ details_title }} - {{ range_str }}
{% if details_groups|length > 0 %} {% set bookings = details_groups %} {% set start_index = 1 %} {% else %} {% set bookings = [details_bookings] %} {% set start_index = 0 %} {% endif %} {% for bList in bookings %} {% set first = bList[0] %} {% if start_index > 0 %} {# First row is special #} {% endif %} {# Then the other rows with real bookings info #} {% for b in bList[start_index:] %} {% endfor %} {% endfor %}
Booking Title Start End Days Cost ({{ currency }}) Actions
{{ first[1] }} {{ first[2] }} {{ first[3] }}
{{ b['title'] }} {{ b['pretty_start'] }} {{ b['pretty_end'] }} {{ b['days'] }} {{ b['total_cost'] }}