{% extends '::email.html.twig' %} {% block subject %} {{ subject }} {% endblock %} {% block body %}

{{ type|title }} Report - {{ month_str }} {{ year }}

{% set waybill_total = 0 %} {% set pcs_total = 0 %} {% set mass_total = 0 %} {% set excl_total = 0 %} {% set vat_total = 0 %} {% set incl_total = 0 %} {% set ma_excl_total = 0 %} {% set ma_vat_total = 0 %} {% set ma_incl_total = 0 %} {% for partner in partner_data %} {% set waybill_total = waybill_total + partner['waybills'] %} {% set pcs_total = pcs_total + partner['pcs'] %} {% set mass_total = mass_total + partner['mass'] %} {% set excl_total = excl_total + partner['sub_total'] %} {% set vat_total = vat_total + partner['vat'] %} {% set incl_total = incl_total + partner['total'] %} {% set ma_excl_total = ma_excl_total + partner['ma_sub_total'] %} {% set ma_vat_total = ma_vat_total + partner['ma_vat'] %} {% set ma_incl_total = ma_incl_total + partner['ma_total'] %} {% if partner['ma_sub_total'] > 0 %} {% set markup = ((partner['ma_sub_total'] - partner['sub_total'])/partner['ma_sub_total'])*100 %} {% else %} {% set markup = 0.00 %} {% endif %} {% endfor %} {% if ma_excl_total > 0 %} {% set total_markup = ((ma_excl_total - excl_total)/ma_excl_total)*100 %} {% else %} {% set total_markup = 0.00 %} {% endif %}
All Partner Breakdown
PartnerWaybillsPiecesChrg MassExcl VatVatInc VatMA Excl VatMA VatMA Inc VatMarkup
{{ partner['name'] }}{{ partner['waybills'] }}{{ partner['pcs'] }}{{ partner['mass']|number_format(2, '.', '') }}{{ partner['sub_total']|number_format(2, '.', '') }}{{ partner['vat']|number_format(2, '.', '') }}{{ partner['total']|number_format(2, '.', '') }}{{ partner['ma_sub_total']|number_format(2, '.', '') }}{{ partner['ma_vat']|number_format(2, '.', '') }}{{ partner['ma_total']|number_format(2, '.', '') }}{{ markup|number_format(2, '.', '') }}
{{ waybill_total }}{{ pcs_total }}{{ mass_total|number_format(2, '.', '') }}{{ excl_total|number_format(2, '.', '') }}{{ vat_total|number_format(2, '.', '') }}{{ incl_total|number_format(2, '.', '') }}{{ ma_excl_total|number_format(2, '.', '') }}{{ ma_vat_total|number_format(2, '.', '') }}{{ ma_incl_total|number_format(2, '.', '') }}{{ total_markup|number_format(2, '.', '') }}
{% set waybill_total = 0 %} {% set pcs_total = 0 %} {% set mass_total = 0 %} {% set excl_total = 0 %} {% set vat_total = 0 %} {% set incl_total = 0 %} {% set ma_excl_total = 0 %} {% set ma_vat_total = 0 %} {% set ma_incl_total = 0 %} {% for cust in customer_data %} {% set waybill_total = waybill_total + cust['waybills'] %} {% set pcs_total = pcs_total + cust['pcs'] %} {% set mass_total = mass_total + cust['mass'] %} {% set excl_total = excl_total + cust['sub_total'] %} {% set vat_total = vat_total + cust['vat'] %} {% set incl_total = incl_total + cust['total'] %} {% set ma_excl_total = ma_excl_total + cust['ma_sub_total'] %} {% set ma_vat_total = ma_vat_total + cust['ma_vat'] %} {% set ma_incl_total = ma_incl_total + cust['ma_total'] %} {% if cust['ma_sub_total'] > 0 %} {% set markup = ((cust['ma_sub_total'] - cust['sub_total'])/cust['ma_sub_total'])*100 %} {% else %} {% set markup = 0.00 %} {% endif %} {% endfor %} {% if ma_excl_total > 0 %} {% set total_markup = ((ma_excl_total - excl_total)/ma_excl_total)*100 %} {% else %} {% set total_markup = 0.00 %} {% endif %}
All Customer Breakdown
CustomerWaybillsPiecesChrg MassExcl VatVatInc VatMA Excl VatMA VatMA Inc VatMarkup
{{ cust['name'] }}{{ cust['waybills'] }}{{ cust['pcs'] }}{{ cust['mass']|number_format(2, '.', '') }}{{ cust['sub_total']|number_format(2, '.', '') }}{{ cust['vat']|number_format(2, '.', '') }}{{ cust['total']|number_format(2, '.', '') }}{{ cust['ma_sub_total']|number_format(2, '.', '') }}{{ cust['ma_vat']|number_format(2, '.', '') }}{{ cust['ma_total']|number_format(2, '.', '') }}{{ markup|number_format(2, '.', '') }}
{{ waybill_total }}{{ pcs_total }}{{ mass_total|number_format(2, '.', '') }}{{ excl_total|number_format(2, '.', '') }}{{ vat_total|number_format(2, '.', '') }}{{ incl_total|number_format(2, '.', '') }}{{ ma_excl_total|number_format(2, '.', '') }}{{ ma_vat_total|number_format(2, '.', '') }}{{ ma_incl_total|number_format(2, '.', '') }}{{ total_markup|number_format(2, '.', '') }}
{% for item in quoted_info %} {% endfor %}
Waybill Quotations
CustomerWaybillAmountQuotationInfoAmountMarkup
{{ item['customer']|trim }} {{ item['waybill'] }} {{ item['waybill_amount']|number_format(2, '.', ' ') }} {{ item['quote_num'] }} {{ item['quote_info']|trim }} {{ item['quote_amount']|number_format(2, '.', ' ') }} {{ (((item['quote_amount'] - item['waybill_amount'])/item['waybill_amount']) * 100)|number_format(2, '.', ' ') }}%
{% for item in invoiced_info %} {% endfor %}
Early Invoiced Waybills
CustomerWaybillAmountInvoiceInfoAmountMarkup
{{ item['customer']|trim }} {{ item['waybill'] }} {{ item['waybill_amount']|number_format(2, '.', ' ') }} {{ item['quote_num'] }} {{ item['quote_info']|trim }} {{ item['quote_amount']|number_format(2, '.', ' ') }} {{ (((item['quote_amount'] - item['waybill_amount'])/item['waybill_amount']) * 100)|number_format(2, '.', ' ') }}%
{% for wb in esculated_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Esculated Waybills
Partner Account Customer Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.partner_name }} {{ wb.ma_account_name }} {{ wb.customer_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in international_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
International Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in credited_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Credited Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in credit_requested_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Credit Requested Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in quoted_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Quoted Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% else %} QUOTE NULL {% endif %} {% else %} QUOTE NOT FLAG {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in invoiced_data %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Early Invoiced Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% for wb in un_billable_waybills %} {% if wb.markup_sub_total == 0.00 and wb.markup_vat == 0.00 and wb.markup_total == 0.00 %} {% set markup_color = 'red' %} {% else %} {% set markup_color = 'black' %} {% endif %} {% if wb.sub_total > 0.00 %} {% set wb_markup = ((wb.markup_sub_total - wb.sub_total)/wb.sub_total)*100 %} {% else %} {% set wb_markup = 0.00 %} {% endif %} {% endfor %}
Un-Billable Waybills
Customer Partner Account Date Waybill Service Level Esculation Ref Sender Orig Receiver Dest Pcs Act Mass Chrg Mass Basic Other R/KG Sub-Total Vat Total Markup
{{ wb.customer_name }} {{ wb.partner_name }} {{ wb.ma_account_name }} {% if wb.waybill_date is not null %} {{ wb.waybill_date|date("Y/m/d") }} {% endif %} {{ wb.waybill }} {{ wb.service }} {% if wb.esculation_level != 0 %}{{ wb.esculation_level }}{% endif %} {{ wb.esculation }} {% if wb.credit_request_number is not null %}
[CREDIT REQUEST: {{ wb.credit_request_number }} R{{ wb.credit_req_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_req_vat|number_format(2, '.', '') }} R{{ wb.credit_req_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.credit_note_number is not null %}
[CREDIT NOTE: {{ wb.credit_note_number }} R{{ wb.credit_ex_vat|number_format(2, '.', '') }} R{{ wb.credit_vat|number_format(2, '.', '') }} R{{ wb.credit_inc_vat|number_format(2, '.', '') }}] {% endif %} {% if wb.quoted %} {% set quote = d2_waybill_quote(wb.waybill) %} {% if quote is not null %}
[QUOTE: {{ quote.docNo }} R{{ quote.total|number_format(2, '.', '') }} {% if wb.early_invoiced %} {% if quote.invoice is not null %}
[INVOICE: {{ quote.invoice.docNo }} R{{ quote.invoice.total|number_format(2, '.', '') }} {% endif %} {% endif %} {% endif %} {% endif %}
{{ wb.ref1 }}{% if wb.ref2|trim != '' %}/{{ wb.ref2 }}{% endif %} {{ wb.sender }} {{ wb.orig }} {{ wb.receiver }} {{ wb.dest }} {{ wb.pcs }} {{ wb.act_mass|number_format(2, '.', '') }} {{ wb.mass_chrg|number_format(2, '.', '') }} {{ wb.basic_chrg|number_format(2, '.', '') }} {{ wb.other_chrg|number_format(2, '.', '') }} {{ wb.cost_per_kg|number_format(1, '.', '') }}{{ wb.sub_total|number_format(2, '.', '') }}
{{ wb.markup_sub_total|number_format(2, '.', '') }}
{{ wb.vat_ex|number_format(2, '.', '') }}
{{ wb.markup_vat|number_format(2, '.', '') }}
{{ wb.total|number_format(2, '.', '') }}
{{ wb.markup_total|number_format(2, '.', '') }}
{{ wb_markup|number_format(2, '.', '') }}%
{% if cust_graph_links|length > 0 %}

Customer Reports

{% for key,link in cust_graph_links %}
Chart Image Chart Image Chart Image Chart Image
{% endfor %} {% endif %}
{% endblock %}