{% extends "wagtailadmin/base.html" %} {% load i18n admin_static currency_filters %} {% block titletag %}{{ view.get_meta_title }}{% endblock %} {% block extra_css %} {{ view.media.css }} {% endblock %} {% block extra_js %} {{ view.media.js }} {% endblock %} {% block content %} {% block header %} {% include "modeladmin/includes/header_with_breadcrumb.html" with title=view.get_page_title subtitle=view.get_page_subtitle icon=view.header_icon tabbed=True %} {% endblock %}
{% block content_main %}

{% blocktrans with view.verbose_name as model_name %}Back to {{ model_name }} list{% endblocktrans %}

Order Number
{{ instance.number }}
Date Placed
{{ instance.date_placed }}
Status
{% if instance.status == "Pending" %}
{{ instance.status }}
{% endif %} {% if instance.status == "Completed" %}
{{ instance.status }}
{% endif %} {% if instance.status == "Cancelled" %}
{{ instance.status }}
{% endif %}
Customer
{{ instance.user.get_full_name }} ({{ instance.user.email }})
Shipping Address
{{ instance.shipping_address }}
{% for line in instance.lines.all %} {% endfor %}
Item Quantity Price (inc VAT) Options
{% if line.product %}

{{ line.title }}

{% else %}

{{ line.title }} (Deleted product)

{% endif %}
{{ line.quantity }} {{ line.line_price_incl_tax|currency:instance.currency }} {% for attribute in line.attributes.all %} {% if attribute.value|length > 0 %}

{{ attribute.option.name }}: "{{ attribute.value }}"

{% else %}

*No {{ attribute.option.name }} given *

{% endif %} {% endfor%}

Payments

{% with events=instance.payment_events.all %} {% if events %} {% for event in events %} {% with line_qtys=event.line_quantities.all %} {% endwith %} {% endfor %} {% else %} {% endif %}
{% trans "Date" %} {% trans "Event" %} {% trans "Amount" %} {% trans "Reference" %}
{{ event.date_created }} {{ event.event_type.name }} {{ event.amount|currency:instance.currency }} {{ event.reference|default:"-" }}
{% trans "No payment events." %}
{% endwith %}
Total excl VAT {{ instance.total_excl_tax|currency:instance.currency }}
VAT {{ instance.total_tax|currency:instance.currency }}
Total incl VAT {{ instance.total_incl_tax|currency:instance.currency }}
{% endblock %}
{% block footer %} {% if buttons %} {% endif %} {% endblock %} {% endblock %}