{% for item in session.cartItems %} {% set item_totals = d2_get_pos_item_total(item) %} {% endfor %}
{{ session.account.accountNumber }} - POINT OF SALE {% if session.booking is not null %}- {{ session.booking }}{% endif %}
DateItemQtySub TotalVatTotal
{{ session.date|date('Y-m-d') }} {{ item.stockItem.description }} {{ item.quantity }} {{ item_totals['sub_total']|number_format(2, '.', '') }} {{ item_totals['vat']|number_format(2, '.', '') }} {{ item_totals['total']|number_format(2, '.', '') }}
{% if session.invoice is null %}
SUB TOTAL{{ totals['sub_total']|number_format(2, '.', '') }}
VAT (15%){{ totals['vat']|number_format(2, '.', '') }}
TOTAL{{ totals['total']|number_format(2, '.', '') }}
TYPE
REFERENCE
AMOUNT{{ totals['total']|number_format(2, '.', '') }}
{% endif %}