{% load i18n %}
{% if credit.label or credit.previous_invoice %}
{{ credit.label }}{% if credit.previous_invoice %}{% if credit.label %} - {% endif %}{% trans "Initial invoice number:" %} {{ credit.previous_invoice.formatted_number }}{% endif %}
{% endif %}
{% if not pool.draft %}
{% trans "Publication date:" %} {{ credit.date_publication|date:"d/m/Y" }}
{% endif %}
{% if not pool and credit.pool %}
{% trans "Origin:" %} {% trans "Campaign" %}
{% else %}
{% trans "Origin:" %} {{ credit.get_origin_display }}
{% endif %}
{% for line in object_list %}
{% if credit.pool %}
{% url 'lingo-manager-invoicing-pool-journal' regie_pk=regie.pk pk=credit.pool.campaign_id pool_pk=credit.pool.pk as journal_url %}
{% endif %}
{% ifchanged line.user_external_id %}