{% extends 'dashboard/layout.html' %} {% load compress %} {% load staticfiles %} {% load currency_filters %} {% load i18n %} {% block body_class %}{{ block.super }} refunds{% endblock %} {% block title %} {% blocktrans with id=refund.id %}Refund #{{ id }}{% endblocktrans %} | {{ block.super }} {% endblock title %} {% block extrascripts %} {{ block.super }} {% compress css %} {% endcompress %} {% compress js %} {% endcompress %} {% endblock extrascripts %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block headertext %} {% blocktrans with id=refund.id %}Refund #{{ id }}{% endblocktrans %} {% endblock headertext %} {% block dashboard_content %} {% block customer_information %}
{% trans "Customer Information" %}
{% trans "Name" %} {% trans "Email address" %}
{{ refund.user.get_full_name|default:"-" }} {{ refund.user.email|default:"-" }}
{% endblock customer_information %} {% block refund_overview %}
{% trans "Refund Overview" %}
{% trans "Total Credit" %} {% trans "Created" %} {% trans "Status" %} {% trans "Associated Order" %} {% trans "Actions" %}
{{ refund.total_credit_excl_tax|currency:refund.currency }} {{ refund.created }} {{ refund.status }} {{ refund.order.number }} {% include "dashboard/partials/refund_buttons.html" %}
{% endblock refund_overview %} {% block refund_details %} {% include "dashboard/partials/refund_action_modal.html" %}

{% trans "Refund Items" %}

{% csrf_token %} {% block refund_lines %} {% for line in refund.lines.all %} {% endfor %}
{% trans "Refund Line ID" %} {% trans "Associated Order Line" %} {% trans "Quantity" %} {% trans "Product" %} {% trans "UPC" %} {% trans "Status" %} {% trans "Supplier" %} {% trans "Supplier SKU" %} {% trans "Credit (excl. tax)" %}
{{ line.id }} {{ line.order_line.id }} {{ line.quantity }} {% if line.order_line.product %} {{ line.order_line.title }} {% else %} {{ line.order_line.title }} {% endif %} {{ line.order_line.upc|default:"-" }} {{ line.status }} {% if line.order_line.partner %} {{ line.order_line.partner_name }} {% else %} {{ line.order_line.partner_name }} {% endif %} {{ line.order_line.partner_sku }} {{ line.line_credit_excl_tax|currency:refund.currency }}
{% trans "Total Credit" %} {{ refund.total_credit_excl_tax|currency:refund.currency }}
{% endblock refund_lines %}
{% endblock refund_details %} {% block payment_events %}

{% trans "Payment Events" %}

{% with events=refund.order.payment_events.all %} {% if events %} {% for event in events %} {% with line_qtys=event.line_quantities.all %} {% endwith %} {% endfor %} {% else %} {% endif %}
{% trans "Date" %} {% trans "Event" %} {% trans "Amount" %} {% trans "Lines" %} {% trans "Processor" %} {% trans "Reference" %}
{{ event.date_created }} {{ event.event_type.name }} {{ event.amount|currency:refund.order.currency }} {% for line_qty in event.line_quantities.all %} {% trans "Product:" %} {{ line_qty.line.title }}. {% trans "Quantity:" %} {{ line_qty.quantity }}.
{% endfor %}
{{ event.processor_name }} {{ event.reference|default:"-" }}
{% trans "No payment events." %}
{% endwith %} {% endblock payment_events %} {% endblock dashboard_content %}