{% for itm in report_list %} {% if itm.header %} {% include 'report-table-header.html' %} {% endif %} {% if itm.username == 'SUBTOTAL' %}
{% if group_type == 'hour'%}Group By Hour -- {{ itm.date_rec }} {{ itm.hour|floatformat }} {% elif group_type == 'day' %}Group By Day -- {{ itm.date_rec }} {% elif group_type == 'week' %}Group By Week -- {{ itm.year|floatformat }} {{ itm.week|floatformat }} {% elif group_type == 'month' %}Group By Month -- {{ itm.month_display }} {% elif group_type == 'year' %}Group By Year -- {{ itm.year|floatformat }}{% endif %}
{{ itm.username }} {{ itm.order_count }} {{ itm.total_duration }} {{ itm.total_order_avg }} {{ itm.seven_day_count }} {{ itm.seven_day_duration }} {{ itm.seven_day_order_avg }} {{ itm.seven_day_avg_per_card }} {{ itm.seven_day_avg_per_drug }} {{ itm.twenty_eight_day_count }} {{ itm.twenty_eight_day_duration }} {{ itm.twenty_eight_day_order_avg }} {{ itm.twenty_eight_day_avg_per_card }} {{ itm.twenty_eight_day_avg_per_drug }}
{% endif %} {% endfor %}