{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% block title %}{% trans "Invoicing (PT)" %}{% endblock %} {% block content %}

{% trans "Invoices and credit notes" %}

{% comment %} A real submit button, not onchange="this.form.submit()": the Control panel's CSP blocks inline event handlers, which left the filter doing nothing. {% endcomment %}
{% for invoice in invoices %} {% empty %} {% endfor %}
{% trans "Order" %} {% trans "Provider" %} {% trans "Kind" %} {% trans "Status" %} {% trans "Document" %} {% trans "Error" %} {% trans "Attempts" %} {% trans "Last updated" %}
{{ invoice.order.code }} {{ invoice.provider_label }} {% if invoice.kind == "credit_note" %} {% trans "Credit note" %} {% else %} {% trans "Invoice" %} {% endif %} {% if invoice.status == "success" %} {% trans "Issued" %} {% elif invoice.status == "error" %} {% trans "Error" %} {% else %} {% trans "Processing" %} {% endif %} {% if invoice.status == "success" %} {{ invoice.display_number }} {% else %}—{% endif %} {% if invoice.error_message %} {{ invoice.error_text|truncatechars:160 }} {% else %}—{% endif %} {{ invoice.attempts }} {{ invoice.modified|date:"SHORT_DATETIME_FORMAT" }} {% if invoice.status == "error" %} {% trans "Retry" %} {% endif %}
{% if status_filter or query %} {% trans "No documents match this filter." %} {% else %} {% trans "No documents issued yet." %} {% endif %}
{% include "pretixcontrol/pagination.html" %} {% endblock %}