{% load i18n %}
{% with order.addresses as addresses %}
{% trans "Billing address" %}
{% with addresses.billing as address %}{% include "plata/_address.html" %}{% endwith %}
{% trans "Shipping address" %}
{% with addresses.shipping as address %}{% include "plata/_address.html" %}{% endwith %}
{% endwith %}
{% trans "Order items" %}
{% for item in order.items.all %}
{{ item.variation }} |
{{ item.quantity }} * {{ item.currency }} {{ item.unit_price|floatformat:2 }} |
{{ item.currency }} {{ item.discounted_subtotal|floatformat:2 }} |
{% endfor %}
{% trans "Discounts" %}
{% for discount in order.applied_discounts.all %}
{% if forloop.first %}
{% endif %}
{{ discount.name }} |
{{ discount.code }} |
{% if forloop.last %}
{% endif %}
{% empty %}
{% trans "No discounts" %}
{% endfor %}
{% trans "Total" %}
{% trans "subtotal"|capfirst %} |
{{ order.currency }} {{ order.subtotal|floatformat:2 }} |
{% trans "discount"|capfirst %} |
{{ order.currency }} {{ order.discount|floatformat:2 }} |
{% trans "tax"|capfirst %} |
{{ order.currency }} {{ order.tax|floatformat:2 }} |
{% trans "total"|capfirst %} |
{{ order.currency }} {{ order.total|floatformat:2 }} |