{% extends "lingo/invoicing/print_document_base.html" %} {% load i18n %} {% block document-label %}{% trans "Payments certificate" %}{% endblock %} {% block regie-label %}{% endblock %} {% block address-to %}
{% trans "Invoiced account:" %}
{{ invoice.payer_name }} ({{ invoice.payer_external_raw_id }})
{% trans "Invoicing address:" %}
{{ invoice.payer_address|linebreaksbr }}
{% trans "Invoice number:" %}
{{ invoice.formatted_number }}
{% trans "Invoice object:" %}
{{ invoice.label }}
{% endblock %} {% block informations-container %}

{% blocktrans with amount=invoice.paid_amount|floatformat:"2" asvar amount %}{{ amount }}€{% endblocktrans %} {% blocktrans with payer_id=invoice.payer_external_raw_id payer=invoice.payer_name %}Hereby certifies that I have received the amount of {{ amount }} for account {{ payer_id }} {{ payer }} as follows:{% endblocktrans %}

{% endblock %} {% block content %} {% for invoice_line_payment in payments %} {% endfor %}
{% trans "Number" context 'payment' %} {% trans "Date" %} {% trans "Payment type" %} {% trans "Amount" %}
{{ invoice_line_payment.payment.formatted_number }} {{ invoice_line_payment.payment.created_at|date:"d/m/Y" }} {{ invoice_line_payment.payment.payment_type }} {% blocktrans with amount=invoice_line_payment.amount|floatformat:"2" %}{{ amount }}€{% endblocktrans %}

{{ regie.cashier_name }}
{% if regie.city_name %}{{ regie.city_name }}, {% endif %} {% with last_line=payments|last %}{% blocktrans with event_date=last_line.payment.created_at|date:"d/m/Y" %}on {{ event_date }}{% endblocktrans %}{% endwith %}

{% endblock %}