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

{% blocktrans with date=date %}Course payments status by date {{ date }}{% endblocktrans %}

{% for report in reports %} {% if report.registration_statuses %} {% else %} {% endif %} {% for rs in report.registration_statuses %} {% endfor %} {% endfor %}
{% trans 'Course' %} {% trans 'Price' %} {% trans 'Number of registrations' %} {% trans 'Discounts' %} {% trans 'Receivables' %} {% trans 'Received payments' %} {% trans 'Amount due' %} {% trans 'Overpayments' %}
{{ report.course.name }} {{ report.course.price | currency }} {{ report.registration_statuses | length }} {{ report.status.discount | currency }} {{ report.status.receivable | currency }} {{ report.status.paid | currency }} {{ report.status.amount_due | currency }} {{ report.status.overpaid | currency }}
{{ rs.registration }} {{ rs.status.discount | currency }} {{ rs.status.receivable | currency }} {{ rs.status.paid | currency }} {{ rs.status.amount_due | currency }} {{ rs.status.overpaid | currency }}
{% trans 'All courses' %} {{ sum.registrations }} {{ sum.status.discount | currency }} {{ sum.status.receivable | currency }} {{ sum.status.paid | currency }} {{ sum.status.amount_due | currency }} {{ sum.status.overpaid | currency }}
{% endif %} {% include 'leprikon/static/bootstrap-datetimepicker.html' %} {% addtoblock "js" %} {% endaddtoblock %} {% endblock %}