{% extends "dashboard/base.html" %} {% load prices_i18n %} {% load i18n %} {% load materializecss %} {% load status %} {% load discount_amount_for from prices %} {% block title %}{{ order }} - {% trans "Orders" %} - {{ block.super }}{% endblock %} {% block body_class %}body-orders{% endblock %} {% block header_menu %} {% url "dashboard:orders" as url %} {% include "dashboard/includes/_back-link.html" with url=url %} {% endblock %} {% block header_extra %} {% if order.can_cancel %} {% endif %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block menu_sales_class %} active{% endblock %} {% block content %}
Order summary
{% trans "Account" %} {% if order.user %} {{ order.user }} {% else %} {% trans "Guest" %} {% endif %}
{% trans "Order status" %} {% render_status order.status order.get_status_display %}
{% trans "Payment status:" %} {% if payment %}{% render_status payment.status payment.get_status_display %}{% else %}{% trans "N/A" %}{% endif %}
{% trans "Order total" %} {% gross order.get_total %}
{% trans "Preauthorized amount" %} {% if preauthorized %}{% gross preauthorized %}{% else %}{% trans "N/A" %}{% endif %}
{% trans "Captured amount" %} {% gross captured %}
{% trans "Outstanding balance" %} {% gross balance %}
{% if can_capture or can_refund or can_release %}
{% if can_capture %} {% trans "Capture" %} {% elif can_refund %} {% trans "Refund" %} {% endif %} {% if can_release %} {% trans "Release" %} {% endif %}
{% endif %}
{% with order.shipping_address as address %}
{% if address %}
{% trans "Shipping address" %} {% include 'dashboard/includes/_address.html' with address=address only %}
{% endif %}
{% with order.billing_address as address %} {% trans "Billing address" %} {% include 'dashboard/includes/_address.html' with address=address only %} {% endwith %}
{% endwith %}
{% for group in groups %}
{% blocktrans with shipment=group.id %}Shipment #{{ shipment }}{% endblocktrans %} {% if group.can_cancel %} {% endif %} {% render_status group.status group.get_status_display %}
{% if group.shipping_price.gross or group.is_shipping_required %} {% endif %} {% for item in group.items.all %} {% endfor %}
{% trans "Item" %} {% trans "SKU" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Total" %}
{% trans "Shipping" %} ({{ group.shipping_method_name }}) {% gross group.shipping_price %}
{{ item.product_name }}
{{ item.product_sku }} {% gross item.get_price_per_item %} {{ item.quantity }} {% gross item.get_total %} {% if group.status != 'cancelled' %} {% endif %}
{% if group.can_ship %} {% endif %}
{% endfor %}
{% if order.discount_amount.gross %} {% endif %}
{% trans "Grand total" %} {% gross order.get_total %}
{% trans "Subtotal" %} {% gross order.get_subtotal_without_voucher %}
{% trans "Shipping" %} {% gross order.get_total_shipping %}
{% blocktrans with voucher=order.discount_name %}Voucher {{ voucher }}{% endblocktrans %} {% gross order.discount|discount_amount_for:order.total %}
{% trans "Order notes" %} {% if notes %}
    {% for note in notes %}
  • {{ note.user }} - {{ note.date }}

    {{ note.content }}

  • {% endfor %}
{% else %}

{% trans "There are no notes associated with this order." %}

{% endif %}
{% if all_payments %}
{% for payment in all_payments %} {% endfor %}
{% trans "Date" %} {% trans "Payment status" %}
#{{ payment.id }} {{ payment.created }} {% render_status payment.status payment.get_status_display %}
{% else %}

{% trans "No payments made for this order." %}

{% endif %}
{% for event in order.history.all %} {% endfor %}
Date Order status User Comment
{{ event.date }} {% render_status event.status event.get_status_display %} {% if event.user %} {{ event.user }} {% endif %} {{ event.comment|default:"" }}
{% endblock %}