{% if quotes_no_links is defined %} {% if quotes_no_links|length > 0 %}

Unlinked Quotations

{% for quote in quotes_no_links %} {% endfor %}
DateQuotationAccountCompanyDescriptionAmount
{{ quote.date|date('Y-m-d') }} {{ quote.docNo }} {{ quote.account.accountNumber }} {{ quote.account.company }} {{ quote.description }} {{ quote.total|number_format(2, '.', ',') }}
{% endif %} {% endif %} {% if quotes_bad_links is defined %} {% if quotes_bad_links|length > 0 %}

Quotations - Unresolved Linkages

{% for quote in quotes_bad_links %} {% set linkages = '' %} {% for waybill_link in quote.waybillLinkages %} {% set linkages = linkages ~ ' (' ~ waybill_link.partner.internalName ~ '/' ~ waybill_link.waybillNumber ~ ')' %} {% endfor %} {% endfor %}
DateQuotationAccountCompanyDescriptionLinkageAmount
{{ quote.date|date('Y-m-d') }} {{ quote.docNo }} {{ quote.account.accountNumber }} {{ quote.account.company }} {{ quote.description }} {{ linkages }} {{ quote.total|number_format(2, '.', ',') }}
{% endif %} {% endif %} {% if file_stats|length > 0 %} {% set global_total = 0 %} {% set global_waybill_cnt = 0 %} {% set global_alert_cnt = 0 %} {% set global_alert_cleared_cnt = 0 %} {% for partner_stat in file_stats %} {% if partner_stat['file_stats']|length > 0 %}

{{ partner_stat['partner'] }}

{% set files_total = 0 %} {% set files_waybill_cnt = 0 %} {% set files_alert_cnt = 0 %} {% set files_alert_cleared_cnt = 0 %} {# FILE STATS #} {% 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'] %} {% if file_stat['cust_grouped']|length > 0 %} {% for cust_stat in file_stat['cust_grouped'] %} {% endfor %} {% endif %} {% endfor %}
Status Waybills Alerts Generated Alerts Cleared Amount Total (inc VAT)
{{ 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, '.', ' ') }}
{{ files_waybill_cnt }} {{ files_alert_cnt }} {{ files_alert_cleared_cnt }} R{{ files_total|number_format(2, '.', ' ') }}
{# PERIOD ERROR STATS #}
{% endif %} {% endfor %}

Month Summary

Waybills Alerts Generated Alerts Cleared Amount Total (inc VAT)
{{ global_waybill_cnt }} {{ global_alert_cnt }} {{ global_alert_cleared_cnt }} R{{ global_total|number_format(2, '.', ' ') }}
{% else %}

No data found to display

{% endif %}