{% extends "lingo/invoicing/manager_campaign_detail.html" %} {% load gadjo 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 user_can_invoice and not object.finalized %} {% if not has_running_pool %} {% trans "Delete" %} {% endif %} {% if pool.status == 'registered' or pool.status == 'running' %} {% trans "Stop" %} {% endif %} {% if not object.invalid and pool.draft and pool.status == 'completed' and pool.is_last %} {% trans "Generate invoices" %} {% endif %} {% endif %} {% trans "Invoices" %} {% trans "Credits" %} {% endblock %} {% block content %} {% if pool.status == 'failed' %}

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

{% if pool.exception %}
{{ pool.exception }}
{% endif %}
{% endif %}
{% if invoices %} {% else %} {% endif %}
{% if invoices %}{% trans "Invoice Filtering" %}{% else %}{% trans "Credit Filtering" %}{% endif %}
{{ filterset.form|with_template }}
{% url 'lingo-manager-invoicing-pool-journal' regie_pk=regie.pk pk=object.pk pool_pk=pool.pk as journal_url %}
{% if invoices %} {% include "lingo/invoicing/manager_pool_detail_invoices_fragment.html" %} {% else %} {% include "lingo/invoicing/manager_pool_detail_credits_fragment.html" %} {% endif %}
{% include "gadjo/pagination.html" %}
{% endblock %}