{% set waybill_history = d2_partner_waybill_history( entity.partner.id, entity.id ) %} {% set waybill_sub_total = 0 %} {% set waybill_vat = 0 %} {% set waybill_total = 0 %}
Waybills:
Waybill | Period | Date | Service | Sub-Total | Vat | Total |
---|---|---|---|---|---|---|
{{ waybill_info['info']['waybill_no'] }} | {{ waybill_info['info']['period'] }} | {{ waybill_info['info']['date']|date("Y/m/d") }} | {{ waybill_info['info']['waybill_srv'] }} | {{ waybill_info['totals']['sub_total']|number_format(2, '.', ' ') }} | {{ waybill_info['totals']['vat']|number_format(2, '.', ' ') }} | {{ waybill_info['totals']['total']|number_format(2, '.', ' ') }} |
Adjustments:
Waybill | Period | Date | Info | Sub-Total | Vat | Total |
---|---|---|---|---|---|---|
{{ waybill_info['info']['waybill_no'] }} | {{ waybill_info['info']['period'] }} | {{ waybill_info['info']['date']|date("Y/m/d") }} | Forward Credit | {{ waybill_info['adjustments']['ex_vat']|number_format(2, '.', ' ') }} | {{ waybill_info['adjustments']['vat']|number_format(2, '.', ' ') }} | {{ waybill_info['adjustments']['inc_vat']|number_format(2, '.', ' ') }} |
Credits:
Waybill | Period | Date | Credit | Reason | Sub-Total | Vat | Total |
---|---|---|---|---|---|---|---|
{{ credit_info['waybill_no'] }} | {{ credit_info['period'] }} | {{ credit_info['date']|date("Y/m/d") }} | {{ credit_info['credit_note'] }} | {{ credit_info['reason'] }} | {{ (0 - credit_info['sub_total'])|number_format(2, '.', ' ') }} | {{ (0 - credit_info['vat'])|number_format(2, '.', ' ') }} | {{ (0 - credit_info['total'])|number_format(2, '.', ' ') }} |
Waybill Total: | {{ waybill_sub_total|number_format(2, '.', ' ') }} | {{ waybill_vat|number_format(2, '.', ' ') }} | {{ waybill_total|number_format(2, '.', ' ') }} |
---|