Invoice #{{ order.id }}

{{ order.date|date('d M Y') }}

Customer:
{{ order.customer }}
Payment Type: {{ order.paymentType|capitalize }}
Status: {{ order.paymentStatus|capitalize }}
{% set totalDiscount = 0 %} {% set totalTax = 0 %} {% set grandTotal = 0 %} {% for item in order.items %} {% set totalDiscount = totalDiscount + (item.discountAmount ?? 0) %} {% set totalTax = totalTax + (item.taxAmount ?? 0) %} {% set grandTotal = grandTotal + item.total %} {% endfor %}
# Dish Quantity Price (€) Discount (€) Tax (€) Total (€)
{{ loop.index }} {{ item.dish }} {{ item.quantity }} €{{ item.price|number_format(2, ',', '.') }} {% if item.discountAmount and item.discountAmount > 0 %} €{{ item.discountAmount|number_format(2, ',', '.') }} ({{ item.discountPercent }}%) {% else %} - {% endif %} {% if item.taxAmount and item.taxAmount > 0 %} €{{ item.taxAmount|number_format(2, ',', '.') }} ({{ item.taxPercent }}%) {% else %} - {% endif %} €{{ item.total|number_format(2, ',', '.') }}
{% if totalDiscount > 0 %}
Total Discount: € -{{ totalDiscount|number_format(2, ',', '.') }}
{% endif %} {% if totalTax > 0 %}
Total Tax: €{{ totalTax|number_format(2, ',', '.') }}
{% endif %}
Grand Total: €{{ grandTotal|number_format(2, ',', '.') }}