{% extends 'oscar/dashboard/layout.html' %}
{% load i18n %}
{% block title %}
{% blocktrans with number=line.order.number id=line.id%}
Order {{ number }} - Line #{{ id }}
{% endblocktrans %} | {{ block.super }}
{% endblock %}
{% block breadcrumbs %}
{% endblock %}
{% block headertext %}
{% blocktrans with number=line.order.number id=line.id %}Order #{{ number }} - Line #{{ id }}{% endblocktrans %}
{% endblock %}
{% block dashboard_content %}
{% trans "Title" context "Product title" %} |
{% if line.product %}
{{ line.title }}
{% else %}
{{ line.title }}
{% endif %}
|
{% trans "Product Type" %} | {{ line.product.get_product_class }} |
{% trans "UPC" %} | {{ line.upc|default:"-" }} |
{% trans "Quantity" %} | {{ line.quantity }} |
{% if line.attributes.exists %}
{% trans "Product Options" %} |
{% for attribute in line.attributes.all %}
{{ attribute.option }} |
{{ attribute.value }} |
{% endfor %}
{% endif %}
{% trans "Status" %} | {{ line.status|default:"-" }} |
{% trans "Partner" %} | {{ line.partner_name }} |
{% trans "Partner SKU" %} | {{ line.partner_sku }} |
{% trans "Partner reference number" %} | {{ line.partner_line_reference|default:"-" }} |
{% trans "Partner notes" %} | {{ line.partner_line_notes|default:"-" }} |
{% trans "State" %} |
{% trans "Quantity" %} |
{% for state in line.shipping_event_breakdown.values %}
{{ state.event_type.name }} |
{{ state.quantity }} |
{% empty %}
{% trans "No shipping events have occurred." %} |
{% endfor %}
{% trans "Event" %} |
{% trans "Quantity" %} |
{% trans "Reference" %} |
{% trans "Date" %} |
{% for event_qty in line.shipping_event_quantities.all %}
{% with event=event_qty.event %}
{{ event.event_type.name }} |
{{ event_qty.quantity }} |
{{ event.notes }} |
{{ event.date_created }} |
{% endwith %}
{% empty %}
{% trans "No shipping events have occurred." %} |
{% endfor %}
{% trans "Event" %} |
{% trans "Quantity" %} |
{% trans "Date" %} |
{% for event_qty in line.payment_event_quantities.all %}
{% with event=event_qty.event %}
{{ event.event_type.name }} |
{{ event_qty.quantity }} |
{{ event.date_created }} |
{% endwith %}
{% empty %}
{% trans "No payment events have occurred." %} |
{% endfor %}
{% endblock dashboard_content %}