{% load i18n %} {{ line.pk }} {% if pool.draft and line.invoice_line.invoice %} {% trans "TEMPORARY" %}-{{ line.invoice_line.invoice_id }} {% elif line.invoice_line.invoice %} {{ line.invoice_line.invoice.formatted_number }} {% endif %} {{ line.event_date|date:"d/m/Y" }} - {{ line.label }}
({{ line.slug }}) {% if line.event.agenda %}
{% if user.is_staff %} {% trans "see agenda" %} {% endif %} {% with line.get_chrono_event_url as event_url %} {% if event_url %}{% if user.is_staff %}- {% endif %}{% trans "see event" %}{% endif %} {% endwith %} {% endif %} {{ line.amount }} {% if line.quantity_type == 'minutes' %} {% blocktrans count quantity=line.quantity %}{{ quantity }} minute{% plural %}{{ quantity }} minutes{% endblocktrans %} {% else %} {{ line.quantity }} {% endif %} {{ line.accounting_code }} {{ line.user_name }} ({{ line.user_external_id }}) {{ line.payer_name }} ({{ line.payer_external_id }})
{% blocktrans with payer_direct_debit=line.payer_direct_debit|yesno %}direct debit: {{ payer_direct_debit }}{% endblocktrans %} {% spaceless %} {% if line.status == 'error' and line.error_status %} {{ line.get_error_status_display }} {% else %} {{ line.get_status_display }} {% endif %} {% endspaceless %} {% if line.status != 'success' %} ({{ line.get_error_display }}) {% if show_fix_error and user_can_invoice and line.status == 'error' %}
{% if line.error_status %} {% trans "reset" %} {% else %} {% trans "ignore" %} - {% trans "mark as fixed" %} {% endif %} {% endif %} {% if user_can_invoice and line.status == 'error' and not line.error_status and pool.is_last %}
{% trans "replay" %} {% endif %} {% endif %} {% if line.from_injected_line_id %}({% trans "Injected" %}){% endif %}