{% extends 'leprikon/form.html' %} {% load i18n leprikon_tags sekizai_tags static %} {% block content %}
{{ block.super }}
{% if form.is_valid %}

{% blocktrans with date=date %}Received orderable event payments from {{ date_start }} to {{ date_end }}{% endblocktrans %}

{% for payment in received_payments %} {% endfor %}
{% trans 'Date' %} {% trans 'Registration' %} {% trans 'Amount' %}
{{ payment.accounted }} {{ payment.target_registration }} {{ payment.amount | currency }}
{{ received_payments_sum | currency }}
{% endif %} {% if returned_payments %}

{% blocktrans with date=date %}Returned orderable event payments from {{ date_start }} to {{ date_end }}{% endblocktrans %}

{% for payment in returned_payments %} {% endfor %}
{% trans 'Date' %} {% trans 'Registration' %} {% trans 'Returned amount' %}
{{ payment.accounted }} {{ payment.source_registration }} {{ payment.amount | currency }}
{{ returned_payments_sum | currency }}
{% endif %} {% if received_payments or returned_payments %}

{% blocktrans with date=date %}Summary from {{ date_start }} to {{ date_end }}{% endblocktrans %}

{% trans 'All received payments' %} {% trans 'All returned payments' %} {% trans 'Received - returned payments' %}
{{ received_payments_sum | currency }} {{ returned_payments_sum | currency }} {{ sum | currency }}
{% endif %} {% include 'leprikon/static/bootstrap-datetimepicker.html' %} {% endblock %}