{% extends 'leprikon/default.html' %} {% load i18n cms_tags leprikon_tags %} {% block content %}

{% block title %}{% trans 'Summary' %}{% endblock %}

{% static_placeholder "summary" %}

{% trans 'Payments overview' %}

{% if payment_status.overdue %} {% blocktrans with overdue=payment_status.overdue|currency %}You have overdue of {{ overdue }}.{% endblocktrans %}
{% endif %} {% if payment_status.amount_due %} {% blocktrans with amount_due=payment_status.amount_due|currency %}Your current amount due is {{ amount_due }}.{% endblocktrans %} {% else %} {% trans 'All Your receivables have been paid.' %} {% endif %} {% if payment_status.overpaid %} {% blocktrans with overpaid=payment_status.overpaid|currency %}You have overpaid {{ overpaid }}.{% endblocktrans %} {% endif %}

{% if payment_status.overpaid %} {% for registration in overpaid_registrations %} {% endfor %}
{% trans 'Registration' %} {% trans 'Overpaid amount' %} {% trans 'Refund options' %}
{{ registration.subject.subject_type.name | first_upper }}: {{ registration.subject.name }}
{% if registration.subject.registration_type_participants %} {% if registration.all_participants|length > 1 %}{% trans 'Participants' %}{% else %}{% trans 'Participant' %}{% endif %}: {{ registration.all_participants|comma_separated }}
{% elif registration.subject.registration_type_groups %} {% trans 'Contact person' %}: {{ registration.group.full_name }} {% if registration.group.name %}
{% trans 'Group name' %}: {{ registration.group.name }}{% endif %} {% endif %}
{{ registration.payment_status.overpaid|currency }} {% if registration.refund_bank_account %} {% trans 'You have requested a refund to the bank account:' %}
{{ registration.refund_bank_account }}
{% trans 'change account number' %}
{% trans 'cancel refund request' %}
{% else %} {% trans 'request refund to a bank account' %}
{% trans 'transfer to a payment' %}
{% trans 'donate' %}
{% endif %}
{% endif %}

{% trans 'New messages' %}

{% if new_messages.count %} {% include 'leprikon/messages_table.html' with object_list=new_messages %} {% else %}

{% trans 'You have no new messages.' %}

{% endif %} {% endblock %}