{% extends 'base/layout.html' %}{% load i18n %} {% block preheader %}{{ preheader }}{% endblock %} {% block content %}

{{ heading }}

{% if data.customer_name %}

{% blocktrans with name=data.customer_name %}Hello {{ name }},{% endblocktrans %}

{% endif %}

{{ intro }}

{% trans "Order number" as number_label %}{% trans "Order date" as date_label %}
{{ number_label }}{{ data.order_numbers }}
{{ date_label }}{{ data.placed_at|date:"Y-m-d H:i" }}

{% trans "Your order" %}

{% if data.is_split %}

{{ split_note }}

{% for part in data.parts %}

{% blocktrans with number=part.order_number %}Order {{ number }}{% endblocktrans %}

{% for item in part.items %}{% include 'base/partials/item_row.html' %}{% endfor %} {% endfor %} {% else %} {% for part in data.parts %}{% for item in part.items %}{% include 'base/partials/item_row.html' %}{% endfor %}{% endfor %} {% endif %} {% if data.discounts %}

{% trans "Discounts" %}

{% for discount in data.discounts %}{% include 'base/partials/summary_row.html' with label=discount.label amount=discount.amount strong=False %}{% endfor %}
{% endif %}

{% trans "Delivery" %}

{% include 'base/partials/summary_row.html' with label=data.delivery.method_name amount=data.delivery.price strong=False %}
{% if data.delivery.pickup_point %}

{% trans "Pickup point" %}: {{ data.delivery.pickup_point.name }}{% for line in data.delivery.pickup_point.address_lines %}
{{ line }}{% endfor %}

{% elif data.delivery.address_lines %}

{% trans "Delivery address" %}:{% for line in data.delivery.address_lines %}
{{ line }}{% endfor %}

{% endif %}

{% trans "Payment" %}

{{ data.payment.method_name }}{% if data.payment.fee %} ({% trans "fee" %}: {{ data.payment.fee }} {{ currency }}){% endif %}

{% if data.payment.is_paid %}

{{ paid_note }}

{% elif data.payment.kind == "transfer" %} {% include 'base/partials/box.html' with heading=transfer_heading rows=transfer_rows body_html=instructions_html note=transfer_note %} {% elif data.payment.kind == "cod" %}

{{ cod_note }}{% if data.payment.amount_due %} {{ data.payment.amount_due }} {{ currency }}{% endif %}

{% endif %}

{% trans "Summary" %}

{% trans "Items" as items_label %}{% trans "Delivery" as delivery_label %}{% trans "Payment fee" as fee_label %}{% trans "Discount" as discount_label %}{% trans "Voucher" as voucher_label %}{% trans "Total" as total_label %}{% trans "Including tax" as tax_label %} {% include 'base/partials/summary_row.html' with label=items_label amount=data.totals.items strong=False %} {% include 'base/partials/summary_row.html' with label=delivery_label amount=data.totals.delivery strong=False %} {% if data.totals.payment_fee %}{% include 'base/partials/summary_row.html' with label=fee_label amount=data.totals.payment_fee strong=False %}{% endif %} {% if data.totals.discount %}{% include 'base/partials/summary_row.html' with label=discount_label amount=data.totals.discount strong=False %}{% endif %} {% if data.totals.voucher %}{% include 'base/partials/summary_row.html' with label=voucher_label amount=data.totals.voucher strong=False %}{% endif %} {% include 'base/partials/summary_row.html' with label=total_label amount=data.totals.total strong=True %} {% if data.totals.tax %}{% include 'base/partials/summary_row.html' with label=tax_label amount=data.totals.tax strong=False %}{% endif %}
{% if data.billing_lines %}

{% trans "Billing details" %}

{% for line in data.billing_lines %}{% if not forloop.first %}
{% endif %}{{ line }}{% endfor %}

{% endif %} {% if data.comment %}

{% trans "Your comment" %}

{{ data.comment|linebreaksbr }}

{% endif %}

{{ help }}

{% endblock %}