{% extends "lingo/invoicing/manager_campaign_detail.html" %} {% load i18n %} {% block breadcrumb %} {{ block.super }} {% trans "Pool" %} {% endblock %} {% block appbar %}

{% if pool.success_count %}{{ pool.success_count }}{% endif %} {% if pool.warning_count %}{{ pool.warning_count }}{% endif %} {% if pool.error_count %}{{ pool.error_count }}{% endif %} {{ pool.created_at|date:"DATETIME_FORMAT" }}

{% trans "Journal" %} {% if not object.finalized %} {% if not has_running_pool %} {% trans "Delete" %} {% endif %} {% if not object.invalid and pool.draft and pool.status == 'completed' and pool.is_last %} {% trans "Promote" %} {% endif %} {% endif %} {% endblock %} {% block content %} {% if pool.status == 'failed' %}

{% trans "Error while running pool." %}

{% if pool.exception %}
{{ pool.exception }}
{% endif %}
{% endif %}
{% trans "Invoice Filtering" %}
{{ filterset.form.as_p }}
{% url 'lingo-manager-invoicing-pool-journal' regie_pk=regie.pk pk=object.pk pool_pk=pool.pk as journal_url %}
{% for invoice in object_list %} {% endfor %}
{% if pool.draft %} {% blocktrans with invoice_number=invoice.formatted_number number=invoice.pk cdate=invoice.created_at|date:'d/m/Y' payer_id=invoice.payer_external_id payer_name=invoice.payer_name amount=invoice.total_amount %}Invoice {{ invoice_number }} dated {{ cdate }} addressed to {{ payer_name }}, amount {{ amount }}€{% endblocktrans %} {% else %} {% if invoice.remaining_amount > 0 and invoice.paid_amount > 0 %} {% trans "Partially paid" %} {% elif invoice.remaining_amount == 0 %} {% trans "Paid" %} {% endif %} {% blocktrans with invoice_number=invoice.formatted_number number=invoice.formatted_number cdate=invoice.created_at|date:'d/m/Y' payer_id=invoice.payer_external_id payer_name=invoice.payer_name amount=invoice.total_amount %}Invoice {{ invoice_number }} dated {{ cdate }} addressed to {{ payer_name }}, amount {{ amount }}€{% endblocktrans %} {% endif %} - {% trans "download" %}
{% include "gadjo/pagination.html" %}
{% endblock %}