{% load i18n leprikon_tags %} {% 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 %}
{% 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 %}