{% 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 %}
Item |
Quantity |
Price (inc VAT) |
Options |
{% for line in instance.lines.all %}
{% 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%}
|
{% endfor %}
Payments
{% with events=instance.payment_events.all %}
{% if events %}
{% trans "Date" %} |
{% trans "Event" %} |
{% trans "Amount" %} |
{% trans "Reference" %} |
{% for event in events %}
{% with line_qtys=event.line_quantities.all %}
{{ event.date_created }} |
{{ event.event_type.name }} |
{{ event.amount|currency:instance.currency }} |
{{ event.reference|default:"-" }} |
{% endwith %}
{% endfor %}
{% else %}
{% trans "No payment events." %} |
{% endif %}
{% 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 }} |