{% set files_total = 0 %}
{% set files_waybill_cnt = 0 %}
{% set files_alert_cnt = 0 %}
{% set files_alert_cleared_cnt = 0 %}
{# FILE STATS #}
|
Status |
Waybills |
Alerts Generated |
Alerts Cleared |
Amount Total (inc VAT) |
|
{% for file_stat in partner_stat['file_stats'] %}
{% set files_total = files_total + file_stat['total_amount_inc'] %}
{% set global_total = global_total + file_stat['total_amount_inc'] %}
{% set global_waybill_cnt = global_waybill_cnt + file_stat['waybill_cnt'] %}
{% set files_waybill_cnt = files_waybill_cnt + file_stat['waybill_cnt'] %}
{% set global_alert_cnt = global_alert_cnt + file_stat['alert_cnt'] %}
{% set files_alert_cnt = files_alert_cnt + file_stat['alert_cnt'] %}
{% set global_alert_cleared_cnt = global_alert_cleared_cnt + file_stat['alerts_cleared'] %}
{% set files_alert_cleared_cnt = files_alert_cleared_cnt + file_stat['alerts_cleared'] %}
{{ file_stat['file_name'] }} |
{{ status_opts[file_stat['file_status']] }} |
{{ file_stat['waybill_cnt'] }} |
{{ file_stat['alert_cnt'] }} |
{{ file_stat['alerts_cleared'] }} |
R{{ file_stat['total_amount_inc']|number_format(2, '.', ' ') }} |
|
{% if file_stat['cust_grouped']|length > 0 %}
{% for cust_stat in file_stat['cust_grouped'] %}
{% if cust_stat['cust_name'] is null %}
UNASSIGNED WAYBILLS
{% else %}
{{ cust_stat['cust_name'] }}
{% endif %}
|
|
{{ cust_stat['waybill_cnt'] }} |
{{ cust_stat['alert_cnt'] }} |
{{ cust_stat['alerts_cleared'] }} |
R{{ cust_stat['total_amount_inc']|number_format(2, '.', ' ') }} |
{% if loop.last %}{% endif %} |
{% endfor %}
{% endif %}
{% endfor %}
|
|
{{ files_waybill_cnt }} |
{{ files_alert_cnt }} |
{{ files_alert_cleared_cnt }} |
R{{ files_total|number_format(2, '.', ' ') }} |
|