{% load i18n leprikon_tags %}
{{ reg.price | currency }} {% if reg.subject.course.school_year_division.period_name %} / {{ reg.subject.course.school_year_division.period_name }}{% endif %} {% if reg.subject_variant %}({{ reg.subject_variant.name }}){% endif %}
{% if reg.subject.subject_type.subject_type == 'event' %}{# events #}
{{ reg.discount | currency }}
{% for discount in reg.all_discounts %} {{ discount.explanation | linebreaks }} {% endfor %}
{% endif %}
{% if reg.payment_status %}{# events #} {{ reg.payment_status.paid | currency }} {% else %}{# courses #} {{ reg.payment_statuses.total.paid | currency }}
{% for ps in reg.get_period_payment_statuses %} {{ ps.period.name }}: {{ ps.status.paid | currency }} {% if ps.status.discount %}({% trans 'discount' %}: {{ ps.status.discount | currency }}{% if ps.status.explanation %} - {{ ps.status.explanation }}{% endif %}){% endif %}
{% endfor %} {% if reg.payment_requested %}

{% blocktrans %}Please, use following information for bank transfer:{% endblocktrans %}
{% trans 'Bank account' %}: {{ site.bank_account }}
{% trans 'Variable symbol' %}: {{ reg.variable_symbol }}

{% endif %}
{% endif %}
{% if reg.course %}
{% for history in reg.course_history.all %} {% for entry in history.course_journal_entries.all %} {% if reg in entry.all_registrations %}✓{% else %}✗{% endif %} {% endfor %} {% endfor %}
{% endif %}