{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}orders{% endblock %} {% block title %} {% blocktrans with number=order.number %}Order {{ number }}{% endblocktrans %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %} {% blocktrans with number=order.number %}Order #{{ number }}{% endblocktrans %} {% endblock %} {% block dashboard_content %} {% if order.user %} {% else %} {% endif %}
{% trans "Customer Information" %}
{% trans "Name" %} {% trans "Email address" %}
{{ order.user.get_full_name|default:"-" }} {{ order.user.email|default:"-" }}
{% trans "Customer checked out anonymously." %}
{% trans "Order information" %}
{% trans "Order Total" %} {% trans "Date of purchase" %} {% trans "Time of purchase" %} {% trans "Status" %}
{{ order.total_incl_tax|currency }} {{ order.date_placed|date:"d/m/y" }} {{ order.date_placed|date:"H:s" }} {{ order.status|default:"N/A" }}
{% block additional_order_information %} {% endblock additional_order_information %}

{% trans "Order Details" %}

{% trans "Items ordered" %}

{% csrf_token %} {% block order_lines %} {% for line in order.lines.all %} {% endfor %} {% with discounts=order.basket_discounts %} {% if discounts %} {% for discount in discounts %} {% endfor %} {% else %} {% endif %} {% endwith %} {% if order.has_shipping_discounts %} {% for discount in order.shipping_discounts %} {% endfor %} {% else %} {% endif %}
{% trans "Select" %} {% trans "Quantity" %} {% trans "Product" %} {% trans "UPC" %} {% trans "Status" %} {% trans "Supplier" %} {% trans "Supplier SKU" %} {% trans "Est. delivery date" %} {% trans "Price (before discounts)" %} {% trans "Actions" %}
{{ line.quantity }} {{ line.title }} {{ line.upc|default:"-" }} {{ line.status|default:"-" }} {{ line.partner_name }} {{ line.partner_sku }} {{ line.est_dispatch_date|default:"-" }} {{ line.line_price_before_discounts_incl_tax|currency }} {% trans "View" %}
{% trans "Discount" %} {{ order.total_discount_incl_tax|currency }}
{% trans "Basket total (excl. discounts)" %} {{ order.basket_total_before_discounts_incl_tax|currency }}
{% trans "Discount" %} {{ discount.offer_name }} - {{ discount.amount|currency }}
{% trans "Basket total (inc. discounts)" %} {{ order.basket_total_incl_tax|currency }}
{% trans "Basket total" %} {{ order.basket_total_incl_tax|currency }}
{% trans "Shipping total (excl. discounts)" %} {{ order.shipping_before_discounts_incl_tax|currency }}
{% trans "Discount" %} {{ discount.offer_name }} - {{ discount.amount|currency }}
{% trans "Shipping total (inc. discounts)" %} {{ order.shipping_incl_tax|currency }}
{% trans "Shipping total" %} {{ order.shipping_incl_tax|currency }}
{% trans "Order total" %} {{ order.total_incl_tax|currency }}
{% endblock order_lines %} {% block line_actions %}

{% trans "With selected lines" %}:

{% endblock line_actions %}

{% trans "Shipping Events" %}

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

{% trans "Payment Events" %}

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

Shipping

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

{% trans "Billing address" %}

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

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

{% trans "Payment sources" %}

{% if sources %} {% for source in sources %} {% endfor %} {% else %} {% endif %}
{% trans "Source" %} {% trans "Allocation" %} {% trans "Amount debited" %} {% trans "Amount refunded" %} {% trans "Reference" %}
{{ source.source_type }} {{ source.amount_allocated|currency }} {{ source.amount_debited|currency }} {{ source.amount_refunded|currency }} {{ source.reference|default:"-" }}
{% trans "No payment sources" %}
{% endwith %} {% block tab_transactions %}

{% trans "Transactions" %}

{% with sources=order.sources.all %} {% if sources %} {% for source in sources %} {% for transaction in source.transactions.all %} {% endfor %} {% endfor %} {% else %} {% endif %}
{% trans "Source" %} {% trans "Amount" %} {% trans "Reference" %} {% trans "Status" %} {% trans "Date" %}
{{ source.source_type }} {{ transaction.amount|currency }} {{ transaction.reference|default:"-" }} {{ transaction.status|default:"-" }} {{ transaction.date_created }}
{% trans "No transaction data available." %}
{% endwith %} {% endblock %}
{% block tab_discounts %} {% with discounts=order.discounts.all %}

{% trans "Offer applications" %}

{% for discount in discounts %} {% endfor %}
{% trans "Type" %} {% trans "Voucher" %} {% trans "Offer name" %} {% trans "Frequency" %} {% trans "Message" %} {% trans "Amount" %}
{{ discount.get_category_display }} {{ discount.voucher.code|default:"-" }} {% if discount.offer %} {{ discount.offer.name }} {% else %} {{ discount.offer_name }} {% endif %} {{ discount.frequency }} {{ discount.message|default:"-" }} {{ discount.amount|currency}}
{% endwith %} {% endblock %}
{% block tab_emails %}

{% trans "Emails" %}

{% trans "No email data available." %}
{% endblock %}
{% block tab_notes %}

{% trans "Notes" %}

{% with notes=order.notes.all %} {% if notes %} {% for note in notes %} {% endfor %} {% else %} {% endif %}
{% trans "Date" %} {% trans "User" %} {% trans "Type" %} {% trans "Message" %}
{{ note.date_created }} {{ note.user }} {{ note.note_type }} {{ note.message|linebreaks }} {% if note.is_editable %}  {% trans "Edit" %}
{% csrf_token %}
{% endif %}
{% trans "No notes available." %}
{% endwith %}
{% csrf_token %} {% include "partials/form_fields.html" with form=note_form %}
{% trans "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 %}