{% 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 {{ total_staff }}€.{% endblocktrans %}

{% blocktrans %}The allowance of {{ allowance_per_yl }}€ per person should be paid to:{% endblocktrans %}

{% blocktrans %}The subsidies for night and transportation costs of {{ total_subsidies }}€ should be paid to:{% endblocktrans %}

{% endif %}

{% trans "Total" %}

{% 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 %}