{% block order_status_changes %}
{% with status_changes=order.status_changes.all %}
{% if status_changes %}
{% trans "From" %} |
{% trans "To" %} |
{% trans "Date" %} |
{% for status_change in status_changes %}
{{ status_change.old_status }} |
{{ status_change.new_status }} |
{{ status_change.date_created }} |
{% endfor %}
{% else %}
{% trans "No status changes." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block shipping_events %}
{% with events=order.shipping_events.all %}
{% endwith %}
{% endblock %}
{% block payment_events %}
{% with events=order.payment_events.all %}
{% if events %}
{% trans "Date" %} |
{% trans "Event" %} |
{% trans "Amount" %} |
{% trans "Lines" %} |
{% trans "Reference" %} |
{% for event in events %}
{% with line_qtys=event.line_quantities.all %}
{{ event.date_created }} |
{{ event.event_type.name }} |
{{ event.amount|currency:order.currency }} |
{% for line_qty in event.line_quantities.all %}
{% trans "Product:" %} {{ line_qty.line.title }} - {% trans "quantity" %} {{ line_qty.quantity }}
{% endfor %}
|
{{ event.reference|default:"-" }} |
{% endwith %}
{% endfor %}
{% else %}
{% trans "No payment events." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block tab_shipping %}
{% trans "Method name" %} |
{{ order.shipping_method }} |
{% trans "Method code" %} |
{{ order.shipping_code|upper }} |
{% trans "Charge (incl tax)" %} |
{{ order.shipping_incl_tax|currency:order.currency }} |
{% trans "Charge (excl tax)" %} |
{{ order.shipping_excl_tax|currency:order.currency }} |
{% trans "Address" %} |
{% for field in order.shipping_address.active_address_fields %}
{{ field }}
{% endfor %}
{% trans "Update" %}
|
{% trans "Phone" %} |
{{ order.shipping_address.phone_number|default:"-" }} |
{% trans "Instructions" %} |
{{ order.shipping_address.notes|default:"-"|linebreaks }} |
{% endblock %}
{% block tab_payment %}
{% if order.billing_address %}
{% for field in order.billing_address.active_address_fields %}
{{ field }}
{% endfor %}
{% endif %}
{% with sources=order.sources.all %}
{% if sources %}
{% trans "Source" %} |
{% trans "Allocation" %} |
{% trans "Amount debited" %} |
{% trans "Amount refunded" %} |
{% trans "Reference" %} |
{% for source in sources %}
{{ source.source_type }} |
{{ source.amount_allocated|currency:order.currency }} |
{{ source.amount_debited|currency:order.currency }} |
{{ source.amount_refunded|currency:order.currency }} |
{{ source.reference|default:"-" }} |
{% endfor %}
{% else %}
{% trans "No payment sources found for this order." %} |
{% endif %}
{% endwith %}
{% block payment_transactions %}
{% if payment_transactions %}
{% trans "Source" %} |
{% trans "Amount" %} |
{% trans "Reference" %} |
{% trans "Status" %} |
{% trans "Date" %} |
{% for txn in payment_transactions %}
{{ txn.source.source_type }} |
{{ txn.amount|currency:order.currency }} |
{{ txn.reference|default:"-" }} |
{{ txn.status|default:"-" }} |
{{ txn.date_created }} |
{% endfor %}
{% endif %}
{% endblock %}
{% endblock %}
{% block tab_discounts %}
{% with discounts=order.discounts.all %}
{% if discounts %}
{% trans "Type" %} |
{% trans "Voucher" %} |
{% trans "Offer name" %} |
{% trans "Frequency" %} |
{% trans "Message" %} |
{% trans "Amount" %} |
{% for discount in discounts %}
{{ 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:order.currency }} |
{% endfor %}
{% else %}
{% trans "No discounts were applied to this order." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block tab_notes %}
{% with notes=order.notes.all %}
{% if notes %}
{% trans "Date" %} |
{% trans "User" %} |
{% trans "Type" %} |
{% trans "Message" %} |
{% trans "Admin" %} |
{% for note in notes %}
{{ note.date_created }} |
{{ note.user|default:"-" }} |
{{ note.note_type|default:"-" }} |
{{ note.message|linebreaks }} |
{% if note.is_editable %}
{% trans "Edit" %}
{% endif %}
|
{% endfor %}
{% else %}
{% trans "No notes available." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block extra_tabs %}{% endblock %}