{% for partner in partner_data %} {% if loop.first %}
{% endif %}
{% set esculation_table = '' %} {% set esculation_table = esculation_table ~ '' %} {% for esculation in partner['esculations'] %} {% if esculation['level'] == 0 %} {% set esc_level = 'LOW' %} {% elseif esculation['level'] == 1 %} {% set esc_level = 'MEDIUM' %} {% else %} {% set esc_level = 'HIGH' %} {% endif %} {% set esculation_table = esculation_table ~ "" %} {% endfor %} {% set esculation_table = esculation_table ~ '
WaybillLevelComment
" ~ esculation['waybill'] ~ "" ~ esculation_options[esculation['level']] ~ "" ~ esculation['esculation'] ~ "
' %}

{{ partner['partner']|trim }}

{% set file_waybill_cnt = 0 %} {% set file_unassigned_cnt = 0 %} {% set file_waybill_total = 0 %} {% for file_data in partner['files'] %} {% set file_waybill_cnt = file_waybill_cnt + file_data['waybill_cnt'] %} {% set file_unassigned_cnt = file_unassigned_cnt + file_data['unassigned_cnt'] %} {% set file_waybill_total = file_waybill_total + file_data['waybill_total'] %} {% endfor %}
FileAccountWaybillsUnassignedInc Vat
{{ file_data['invoice_file'].getOrigPath }} {% if file_data['invoice_file'].getMaAccount %}{{ file_data['invoice_file'].getMaAccount.getMaAccountName }}{% endif %} {{ file_data['waybill_cnt'] }} {{ file_data['unassigned_cnt'] }} {{ file_data['waybill_total']|number_format(2, '.', '') }}
{{ file_waybill_cnt }}{{ file_unassigned_cnt }}{{ file_waybill_total|number_format(2, '.', '') }}
{% set waybill_cnt_total = 0 %} {% set kgs_total = 0 %} {% set excl_total = 0 %} {% set vat_total = 0 %} {% set incl_total = 0 %} {% for stat in partner['service_stats'] %} {% set waybill_cnt_total = waybill_cnt_total + stat['waybill_cnt'] %} {% set kgs_total = kgs_total + stat['kg_shipped'] %} {% set excl_total = excl_total + stat['total_ex_vat'] %} {% set vat_total = vat_total + stat['totat_vat'] %} {% set incl_total = incl_total + stat['total_inc_vat'] %} {% endfor %}
AccountServiceWaybillsKgsExcl VatVatInc Vat
{{ waybill_cnt_total }}{{ kgs_total|number_format(2, '.', '') }}{{ excl_total|number_format(2, '.', '') }}{{ vat_total|number_format(2, '.', '') }}{{ incl_total|number_format(2, '.', '') }}
{% set waybill_cnt_total = 0 %} {% set pieces_cnt_total = 0 %} {% set kgs_total = 0 %} {% set excl_total = 0 %} {% set vat_total = 0 %} {% set incl_total = 0 %} {% for stat in partner['customer_stats'] %} {% set waybill_cnt_total = waybill_cnt_total + stat['waybill_cnt'] %} {% set pieces_cnt_total = pieces_cnt_total + stat['pcs'] %} {% set kgs_total = kgs_total + stat['mass_charged'] %} {% set excl_total = excl_total + stat['orig_sub_total'] %} {% set vat_total = vat_total + stat['orig_vat'] %} {% set incl_total = incl_total + stat['orig_total'] %} {% endfor %}
CustomerWaybillsPcsKgsExcl VatVatInc Vat
{{ stat['cust_name'] }}{{ stat['waybill_cnt'] }}{{ stat['pcs'] }}{{ stat['mass_charged']|number_format(2, '.', '') }}{{ stat['orig_sub_total']|number_format(2, '.', '') }}{{ stat['orig_vat']|number_format(2, '.', '') }}{{ stat['orig_total']|number_format(2, '.', '') }}
{{ waybill_cnt_total }}{{ pieces_cnt_total }}{{ kgs_total|number_format(2, '.', '') }}{{ excl_total|number_format(2, '.', '') }}{{ vat_total|number_format(2, '.', '') }}{{ incl_total|number_format(2, '.', '') }}
{% set last_cn = '' %} {% set cn_excl_total = 0 %} {% set cn_vat_total = 0 %} {% set cn_incl_total = 0 %} {% set cna_excl_total = 0 %} {% set cna_vat_total = 0 %} {% set cna_incl_total = 0 %} {% for stat in partner['credit_stats'] %} {% set cna_excl_total = cna_excl_total + stat['cna_sub_total'] %} {% set cna_vat_total = cna_vat_total + stat['cna_vat'] %} {% set cna_incl_total = cna_incl_total + stat['cna_total'] %} {% if last_cn != stat['credit_note'] %} {% set cn_excl_total = cn_excl_total + stat['cn_sub_total'] %} {% set cn_vat_total = cn_vat_total + stat['cn_vat'] %} {% set cn_incl_total = cn_incl_total + stat['cn_total'] %} {% set last_cn = stat['credit_note'] %} {% else %} {% endif %} {% endfor %}
CreditExcl VatVatInc VatWaybillExcl VatVatInc Vat
{{ stat['credit_note'] }}{{ stat['cn_sub_total']|number_format(2, '.', '') }}{{ stat['cn_vat']|number_format(2, '.', '') }}{{ stat['cn_total']|number_format(2, '.', '') }}{{ stat['waybill'] }}{{ stat['cna_sub_total']|number_format(2, '.', '') }}{{ stat['cna_vat']|number_format(2, '.', '') }}{{ stat['cna_total']|number_format(2, '.', '') }}{{ stat['waybill'] }}{{ stat['cna_sub_total']|number_format(2, '.', '') }}{{ stat['cna_vat']|number_format(2, '.', '') }}{{ stat['cna_total']|number_format(2, '.', '') }}
{{ cn_excl_total|number_format(2, '.', '') }}{{ cn_vat_total|number_format(2, '.', '') }}{{ cn_incl_total|number_format(2, '.', '') }}{{ cna_excl_total|number_format(2, '.', '') }}{{ cna_vat_total|number_format(2, '.', '') }}{{ cna_incl_total|number_format(2, '.', '') }}
Alert Status
Alert Type
{% if not loop.first and loop.index%3 == 0 %}
{% endif %} {% endfor %}