{% load i18n leprikon_tags qr_code %}
{{ reg.price_text }} {% if reg.subject_variant.name %}({{ reg.subject_variant.name }}){% endif %}
{% if reg.payment_status.amount_due %} {% trans 'payment request' %} {% endif %}
{{ reg.payment_status.title }}
{% if reg.period_payment_statuses %} {% for pps in reg.period_payment_statuses %} {{ pps.period.name }}: {% blocktrans with received=pps.status.received|currency %}paid {{ received }}{% endblocktrans %}{% if pps.status.returned %}, {% blocktrans with returned=pps.status.returned|currency %}refunded {{ returned }}{% endblocktrans %}{% endif %} {% if pps.status.discount %}({% trans 'discount' %}: {{ pps.status.discount | currency }}{% if pps.status.explanation %} - {{ pps.status.explanation }}{% endif %}){% endif %} {% if not forloop.last %}
{% endif %} {% endfor %} {% else %} {% blocktrans with received=reg.payment_status.received|currency %}paid {{ received }}{% endblocktrans %}{% if reg.payment_status.returned %}, {% blocktrans with returned=reg.payment_status.returned|currency %}refunded {{ returned }}{% endblocktrans %}{% endif %} {% if reg.payment_status.discount %}({% trans 'discount' %}: {{ reg.payment_status.discount | currency }}{% if reg.payment_status.explanation %} - {{ reg.payment_status.explanation }}{% endif %}){% endif %} {% endif %} {% if reg.payment_status.amount_due %} {% if site.payment_gateway %}

{% trans 'Online payment' %}

{% trans 'pay online' %}

{% endif %} {% if reg.organization.bank_account %}

{% trans 'Bank transfer' %}

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

{% trans 'Or You may use following QR code to scan the payment details to your mobile banking application' %}:
{% qr_from_text reg.spayd border=1 %}

{% endif %} {% if not reg.organization.bank_account and not site.payment_gateway %}

{% trans 'Currently we only accept payments in cash.' %}

{% endif %} {% endif %}