52 lines
2.0 KiB
HTML
52 lines
2.0 KiB
HTML
{% load i18n %}
|
|
<td class="line_id">{{ line.pk }}</td>
|
|
<td>
|
|
{% if pool.draft and line.invoice %}
|
|
{% trans "TEMPORARY" %}-{{ line.invoice_id }}
|
|
{% elif line.invoice %}
|
|
{{ line.invoice.formatted_number }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{{ line.event_date|date:"d/m/Y" }} - {{ line.label }}
|
|
<br />
|
|
({{ line.slug }})
|
|
</td>
|
|
<td>{{ line.quantity }}</td>
|
|
<td>{{ line.unit_amount }}</td>
|
|
<td>{{ line.total_amount }}</td>
|
|
<td>{{ line.user_name }} ({{ line.user_external_id }})</td>
|
|
<td>
|
|
{{ line.payer_name }} ({{ line.payer_external_id }})
|
|
<br />
|
|
{% blocktrans with payer_demat=line.payer_demat|yesno %}demat: {{ payer_demat }}{% endblocktrans %}
|
|
<br />
|
|
{% blocktrans with payer_direct_debit=line.payer_direct_debit|yesno %}direct debit: {{ payer_direct_debit }}{% endblocktrans %}
|
|
</td>
|
|
<td class="status">
|
|
<span class="meta meta-{{ line.status }}">{% spaceless %}
|
|
{% if line.status == 'error' and line.error_status %}
|
|
{{ line.get_error_status_display }}
|
|
{% else %}
|
|
{{ line.get_status_display }}
|
|
{% endif %}
|
|
{% endspaceless %}</span>
|
|
{% if line.status != 'success' %}
|
|
({{ line.get_error_display }})
|
|
{% if line.status == 'error' and not pool.draft %}
|
|
<br />
|
|
{% if line.error_status %}
|
|
<a class="error-status" href="{% url 'lingo-manager-invoicing-line-set-error-status' regie_pk=regie.pk pk=object.pk pool_pk=pool.pk line_pk=line.pk status='reset' %}">{% trans "reset" %}</a>
|
|
{% else %}
|
|
<a class="error-status" href="{% url 'lingo-manager-invoicing-line-set-error-status' regie_pk=regie.pk pk=object.pk pool_pk=pool.pk line_pk=line.pk status='ignore' %}">{% trans "ignore" %}</a>
|
|
-
|
|
<a class="error-status" href="{% url 'lingo-manager-invoicing-line-set-error-status' regie_pk=regie.pk pk=object.pk pool_pk=pool.pk line_pk=line.pk status='fix' %}">{% trans "mark as fixed" %}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if line.from_injected_line_id %}({% trans "Injected" %}){% endif %}
|
|
</td>
|
|
<td>
|
|
<span class="togglable"></span>
|
|
</td>
|