{% block tab_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 %}
{% 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 }} |
{{ source.amount_debited|currency }} |
{{ source.amount_refunded|currency }} |
{{ source.reference|default:"-" }} |
{% endfor %}
{% else %}
{% trans "No payment sources" %} |
{% endif %}
{% endwith %}
{% block tab_transactions %}
{% with sources=order.sources.all %}
{% if sources %}
{% trans "Source" %} |
{% trans "Amount" %} |
{% trans "Reference" %} |
{% trans "Status" %} |
{% trans "Date" %} |
{% for source in sources %}
{% for transaction in source.transactions.all %}
{{ source.source_type }} |
{{ transaction.amount|currency }} |
{{ transaction.reference|default:"-" }} |
{{ transaction.status|default:"-" }} |
{{ transaction.date_created }} |
{% endfor %}
{% endfor %}
{% else %}
{% trans "No transaction data available." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block tab_discounts %}
{% with discounts=order.discounts.all %}
{% 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}} |
{% endfor %}
{% endwith %}
{% endblock %}
{% block tab_emails %}
{% trans "No email data available." %} |
{% endblock %}
{% block tab_notes %}
{% with notes=order.notes.all %}
{% if notes %}
{% trans "Date" %} |
{% trans "User" %} |
{% trans "Type" %} |
{% trans "Message" %} |
|
{% for note in notes %}
{{ note.date_created }} |
{{ note.user }} |
{{ note.note_type }} |
{{ note.message|linebreaks }} |
{% if note.is_editable %}
{% trans "Edit" %}
{% endif %}
|
{% endfor %}
{% else %}
{% trans "No notes available." %} |
{% endif %}
{% endwith %}
{% endblock %}
{% block extra_tabs %}{% endblock %}