{% if costs|length > 0 %} {% for cost in costs %} {% set cost_class = 'no_alert_row' %} {% if cost['min_cost']|round(2) != cost['avg_cost']|round(2) %} {% set pct = ((cost['avg_cost'] - cost['min_cost'])/cost['avg_cost']) * 100 %} {% if pct|abs >= 5.0 %} {% set cost_class = 'info' %} {% endif %} {% endif %} {% if cost['last_avg_cost'] != 0.00 and (cost['avg_cost']|round(2) != cost['last_avg_cost']|round(2)) %} {% set pct = ((cost['avg_cost'] - cost['last_avg_cost'])/cost['avg_cost']) * 100 %} {% if pct|abs >= 5.0 %} {% set cost_class = 'error' %} {% endif %} {% endif %} {% set wbr = route ~ '&origin=' ~ cost['origin'] ~ '&dest=' ~ cost['dest'] ~ '&service=' ~ cost['service'] ~ '&mass=' ~ cost['mass'] %} {% set pwbr = prev_route ~ '&origin=' ~ cost['origin'] ~ '&dest=' ~ cost['dest'] ~ '&service=' ~ cost['service'] ~ '&mass=' ~ cost['mass'] %} {% endfor %}
{{ period }}{{ last_period }}
OriginDestMassServiceMinAvgMaxMinAvgMax
{{ cost['origin']|trim }} {{ cost['dest']|trim }} {{ cost['mass']|trim }} {{ cost['service']|trim }} {{ cost['min_cost']|number_format(2, '.', ' ') }} {{ cost['avg_cost']|number_format(2, '.', ' ') }} {{ cost['max_cost']|number_format(2, '.', ' ') }} {{ cost['last_min_cost']|number_format(2, '.', ' ') }} {{ cost['last_avg_cost']|number_format(2, '.', ' ') }} {{ cost['last_max_cost']|number_format(2, '.', ' ') }}
{% endif %}