{% extends "admin/base_site.html" %} {% load i18n admin_urls static %} {% load overview_extras %} {% block extrahead %} {{ block.super }} {{ media }} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} admin-view {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate "Bills" %}

{% for bill in statement.bill_set.all %} {% endfor %}
{% trans "Amount" %} {% trans "Covered by association" %}
{{bill.short_description}} {{ bill.amount }}€. {{ bill.costs_covered|render_bool }}

{% blocktrans %}The total amount is {{total_bills}} €.{% endblocktrans %}

{% if statement.excursion %}

{% trans "Excursion" %}

{% blocktrans %}This excursion featured {{ staff_count }} youth leader(s), each costing{% endblocktrans %}

{% blocktrans %}In total this is {{ total_per_yl }}€ times {{ staff_count }}, giving {{ theoretical_total_staff }}€.{% endblocktrans %}

{% trans "Payment of subsidies and allowances" %}

{% if allowances_paid > 0 %}

{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person should be paid to:{% endblocktrans %} {% for member in statement.allowance_to.all %} {% endfor %}
{% trans "IBAN valid" %}
{{ member.name }} {{ member.iban_valid|render_bool }}

{% if allowances_paid < real_staff_count %}

{% blocktrans %}Only {{ allowances_paid }} of the {{ real_staff_count }} youth leaders have requested the outpayment of their allowance.{% endblocktrans %}

{% endif %} {% else %}

{% blocktrans %}No receivers of the allowance were provided. Allowance will not be used.{% endblocktrans %}

{% endif %} {% if statement.subsidy_to %}

{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ should be paid to:{% endblocktrans %}
{% trans "IBAN valid" %}
{{ statement.subsidy_to.name }} {{ statement.subsidy_to.iban_valid|render_bool }}

{% else %}

{% blocktrans %}No receivers of the subsidies were provided. Subsidies will not be used.{% endblocktrans %}

{% endif %} {% if statement.ljp_to %}

{% blocktrans %} The youth leaders have documented interventions worth of {{ total_seminar_days }} seminar days for {{ participant_count }} eligible participants. Taking into account the maximum contribution quota of 90% and possible taxes ({{ ljp_tax }}%), this results in a total of {{ paid_ljp_contributions }}€. Once their proposal was approved, the ljp contributions of should be paid to:{% endblocktrans %}
{% trans "IBAN valid" %}
{{ statement.ljp_to.name }} {{ statement.ljp_to.iban_valid|render_bool }}

{% endif %} {% endif %}

{% trans "Summary" %}

{% trans "Covered bills" %} {{ total_bills }}€
{% trans "Allowance" %} {{ total_allowance }}€
{% trans "Contributions by the association" %} {{ total_subsidies }}€
{% trans "ljp contributions" %} {{ paid_ljp_contributions }}€

{% blocktrans %}This results in a total amount of {{ total }}€{% endblocktrans %}

{% trans 'Transactions' %}

{% if statement.transaction_set.count == 0 %} {% blocktrans %}Currently, no transactions are planned. You can auto generate them from the data, by clicking the following button.{% endblocktrans %}
{% csrf_token %}
{% else %} {% blocktrans %}Currently the following transactions are planned.{% endblocktrans %}

{% for transaction in statement.transaction_set.all %} {% endfor %}
{% trans "Amount" %} {% trans "Reference" %} {% trans "Ledger" %}
{{ transaction.member }} {{ transaction.amount }}€ {{ transaction.reference }} {{ transaction.ledger }}
{% comment %}

{% endcomment%}

{% if transaction_issues|length == 0 %} {% blocktrans %}These transactions match the calculated costs.{% endblocktrans %} {% else %}

{% blocktrans %}The current transactions do not reflect all costs in this statement. Please fix the following issues:{% endblocktrans %}

{% for issue in transaction_issues %} {% endfor %}
{% trans "Currently receiving" %} {% trans "Actual costs" %} {% trans "Difference" %}
{{ issue.member }} {{ issue.current }}€ {{ issue.target }}€ {{ issue.difference }}€

{% endif %} {% endif %}
{% csrf_token %} {% url opts|admin_urlname:'change' original.pk|admin_urlquote as change_url %} {% trans 'Cancel' %}
{% endblock %}