{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% block body_class %}orders{% endblock %} {% block title %} Order {{ order.number }} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}

Customer Information

{% if order.user %}

Name

{{ order.user.get_full_name|default:"-" }}

Email address

{{ order.user.email|default:"-" }}

{% else %}

Customer checked out anonymously.

{% endif %}

Order information

Order Total

{{ order.total_incl_tax|currency }}

Date of purchase

{{ order.date_placed|date:"d/m/y" }}

Time of purchase

{{ order.date_placed|date:"H:s" }}

Status

{{ order.status|default:"N/A" }}

Order Details

Items ordered

{% csrf_token %} {% for line in order.lines.all %} {% endfor %}
Select Quantity Product UPC Status Supplier Supplier SKU Est. delivery date Price (before discounts) Actions
{{ line.quantity }} {{ line.title }} {{ line.upc }} {{ line.status|default:"-" }} {{ line.partner_name }} {{ line.partner_sku }} {{ line.est_dispatch_date }} {{ line.line_price_before_discounts_incl_tax|currency }} View
Discount {{ order.total_discount_incl_tax|currency }}
Shipping charge {{ order.shipping_incl_tax|currency }}
Total {{ order.total_incl_tax|currency }}
{% block line_actions %}

With selected lines:

{% endblock line_actions %}

Shipping Events

{% with events=order.shipping_events.all %} {% if events %} {% for event in events %} {% with line_qtys=event.line_quantities.all %} {% endwith %} {% endfor %}
Date Event Lines Notes
{{ event.date }} {{ event.event_type.name }} {% for line_qty in event.line_quantities.all %} Product: {{ line_qty.line.title }} - quantity {{ line_qty.quantity }}
{% endfor %}
{{ event.notes }}
{% else %}

No shipping events.

{% endif %} {% endwith %}

Payment Events

{% with events=order.payment_events.all %} {% if events %} {% for event in events %} {% with line_qtys=event.line_quantities.all %} {% endwith %} {% endfor %}
Date Event Amount Lines
{{ event.date }} {{ event.event_type.name }} {{ event.amount|currency }} {% for line_qty in event.line_quantities.all %} Product: {{ line_qty.line.title }} - quantity {{ line_qty.quantity }}
{% endfor %}
{% else %}

No payment events.

{% endif %} {% endwith %}
{% block tab_shipping %}
Method {{ order.shipping_method }}
Charge (incl tax) {{ order.shipping_incl_tax|currency }}
Charge (excl tax) {{ order.shipping_excl_tax|currency }}
Address {% for field in order.shipping_address.active_address_fields %} {{ field }}
{% endfor %}
{% endblock %}
{% if order.billing_address %}

Billing address

{% for field in order.billing_address.active_address_fields %} {{ field }}
{% endfor %}

{% endif %} {% with sources=order.sources.all %}

Payment sources

{% if sources %} {% for source in sources %} {% endfor %}
Source Allocation Amount debited Amount refunded
{{ source.source_type }} {{ source.amount_allocated|currency }} {{ source.amount_debited|currency }} {{ source.amount_refunded|currency }}
{% else %}

No payment sources

{% endif %} {% endwith %} {% block tab_transactions %}

Transactions

No transaction data available.

{% endblock %}
{% block tab_discounts %}

Discounts

{% with discounts=order.discounts.all %} {% if discounts %} {% for discount in discounts %} {% endfor %}
Voucher code Offer name Amount
{{ discount.voucher_code|default:"-" }} {{ discount.offer.name }} {{ discount.amount|currency}}
{% else %}

No discounts were applied in this order.

{% endif %} {% endwith %} {% endblock %}
{% block tab_emails %}

Emails

No email data available.

{% endblock %}
{% block tab_notes %}

Notes

{% with notes=order.notes.all %} {% if notes %} {% for note in notes %} {% endfor %}
Date User Type Message
{{ note.date_created }} {{ note.user }} {{ note.note_type }} {{ note.message|linebreaks }} {% if note.is_editable %}  Edit
{% csrf_token %}
{% endif %}
{% endif %} {% endwith %}
{% csrf_token %} {% include "partials/form_fields.html" with form=note_form %}
Notes are only editable for 5 minutes after being saved.
{% endblock %}
{% block extra_tabs %}{% endblock %}
{% endblock dashboard_content %} {% block onbodyload %} oscar.dashboard.orders.initTabs(); oscar.dashboard.orders.initTable(); {% endblock %}