{% load i18n leprikon_tags mathfilters %}

{% trans 'Payment request' %}

{% trans 'registration number' %}: {{ object.variable_symbol }}

{% trans 'provider' %}:

{{ object.organization.name }}

{% trans 'address' %}:

{{ object.organization.street }}

{{ object.organization.postal_code }}, {{ object.organization.city }}

{% if object.organization.email %}

{% trans 'email' %}: {{ object.organization.email }}

{% endif %} {% if object.organization.phone %}

{% trans 'phone' %}: {{ object.organization.phone }}

{% endif %} {% if object.organization.email or object.organization.phone %}
{% endif %}

{% trans 'company number' %}: {{ object.organization.company_num }}

{% if object.organization.vat_number %}

{% trans 'VAT number' %}: {{ object.organization.vat_number }}

{% endif %}

{% trans 'payer' %}:

{% if object.billing_info %}

{{ object.billing_info.name }}

{% if object.billing_info.street or object.billing_info.postal_code or object.billing_info.city %}

{% trans 'address' %}:

{{ object.billing_info.street }}

{{ object.billing_info.postal_code }}, {{ object.billing_info.city }}

{% endif %} {% if object.billing_info.contact_person %}

{% trans 'contact person' %}: {{ object.billing_info.contact_person }}

{% endif %} {% if object.billing_info.email %}

{% trans 'email' %}: {{ object.billing_info.email }}

{% endif %} {% if object.billing_info.phone %}

{% trans 'phone' %}: {{ object.billing_info.phone }}

{% endif %} {% if object.billing_info.contact_person or object.billing_info.email or object.billing_info.phone %}
{% endif %} {% if object.billing_info.company_num %}

{% trans 'company number' %}: {{ object.billing_info.company_num }}

{% endif %} {% if object.billing_info.vat_number %}

{% trans 'VAT number' %}: {{ object.billing_info.vat_number }}

{% endif %} {% if object.billing_info.employee %}

{% trans 'Employee ID' %}: {{ object.billing_info.employee }}

{% endif %} {% else %}

{% if object.user.get_full_name %}{{ object.user.get_full_name }}{% else %}{{ object.user.username }}{% endif %}

{% endif %}
{% if object.courseregistration %} {% for pps in object.period_payment_statuses %}{% if pps.status.amount_due %} {% endif %}{% endfor %} {% else %} {% endif %}

{% trans 'description' %}

{% trans 'amount due' %}

{% trans 'due date' %}

{{ object.activity.activity_type.name }}: {{ object.activity.name }}, {{ pps.period.name }}
{% if object.activity.registration_type_participants %} {% if object.all_participants|length > 1 %}{% trans 'participant' %}{% else %}{% trans 'participants' %}{% endif %}: {{ object.all_participants|comma_separated }} {% elif object.activity.registration_type_groups %} {% trans 'contact person' %}: {{ object.group.full_name }}{% if object.group.name %}, {% trans 'group name' %}: {{ object.group.name }}{% endif %} {% endif %}

{{ pps.status.amount_due | currency }}

{{ pps.status.due_date }}

{{ object.activity.activity_type.name }}: {{ object.activity.name }}
{% if object.activity.registration_type_participants %} {% if object.all_participants|length > 1 %}{% trans 'participant' %}{% else %}{% trans 'participants' %}{% endif %}: {{ object.all_participants|comma_separated }} {% elif object.activity.registration_type_groups %} {% trans 'contact person' %}: {{ object.group.full_name }}{% if object.group.name %}, {% trans 'group name' %}: {{ object.group.name }}{% endif %} {% endif %}

{{ object.payment_status.amount_due | currency }}

{{ object.payment_status.due_date }}

{% if object.organization.iban %}

{% trans 'You may use following QR code to scan the payment details to your mobile banking application' %}:

QR Code {% endif %}

{% trans 'total amount due' %}:

{{ object.payment_status.amount_due|currency }}

{% trans 'variable symbol' %}:

{{ object.variable_symbol }}

{% trans 'bank account' %}:

{{ object.organization.bank_account }}