{% extends 'D2PartnerBundle::base.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
Waybill
recordsSET ALL | CLEAR |
Customer | Partner | Account | {% else %}Partner | Account | Customer | {% endif %}Date | Waybill | Service | Level | Esculation | Ref 1 | Ref 2 | Sender | Orig | Receiver | Dest | Pcs | Act Mass | Chrg Mass | Incl Mass | Basic | Other | R/KG | Sub-Total | Vat | Total | Markup |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ wb.customer_name }} | {{ wb.partner_name }} | {{ wb.ma_account_name }} | {% else %}{{ wb.partner_name }} | {{ wb.ma_account_name }} | {{ wb.customer_name }} | {% endif %}{% 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 }} | {{ wb.ref2 }} | {{ wb.sender }} | {{ wb.orig }} | {{ wb.receiver }} | {{ wb.dest }} | {{ wb.pcs }} | {{ wb.act_mass|number_format(2, '.', '') }} | {{ wb.mass_chrg|number_format(2, '.', '') }} | {{ wb.incl_mass|number_format(2, '.', '') }} | {{ wb.basic_chrg|number_format(2, '.', '') }} | {{ wb.other_chrg|number_format(2, '.', '') }} | {{ wb.cost_per_kg|number_format(1, '.', '') }} | {% 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 %}{{ 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, '.', '') }} |
{% 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 %}
{{ wb_markup|number_format(2, '.', '') }}% |