{% extends "./show.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load static %} {% load juntagrico.subscription %} {% load juntagrico.config %} {% block page_title %}

{{ title }} {{ year_selection_form.year.value }}

{% endblock %} {% block content %} {% crispy year_selection_form %} {{ block.super }} {% endblock %} {% block list_head %} {% config "currency" as c_currency %} {% trans "Inhalt" %} [{{ c_currency }}] {% trans "Summe Inhalt" %} [{{ c_currency }}] {% if show_depot_fee %} {% trans "Depotzuschlag" %} [{{ c_currency }}] {% trans "Summe Depotzuschlag" %} [{{ c_currency }}] {% endif %} {% trans "Aufschlag/Abschlag" %} [{{ c_currency }}] {% trans "Total" %} [{{ c_currency }}] {% endblock %} {% block list_foot %} {% trans "Inhalt" %} {% trans "Summe Inhalt" %} {% if show_depot_fee %} {% trans "Depotzuschlag" %} {% trans "Summe Depotzuschlag" %} {% endif %} {% trans "Aufschlag/Abschlag" %} {% trans "Total" %} {% endblock %} {% block list_entry %} {% price_summary subscription subscription.relevant_parts subscription.relevant_surcharges as price_summary %} {% for part, price in price_summary.parts.items %}
{{ part }}: {{ price|floatformat:"-2u" }} {% if part.starts %} {% blocktrans with start_date=part.starts|date:"d.m.Y" %}ab {{ start_date }}{% endblocktrans %} {% endif %} {% if part.ends %} {% blocktrans with end_date=part.ends|date:"d.m.Y" %}bis {{ end_date }}{% endblocktrans %} {% endif %}
{% endfor %} {{ price_summary.parts_total|floatformat:"-2u" }} {% for part, fee in price_summary.depot_fee_by_type.items %}
{{ part }}: {{ fee|floatformat:"-2u" }}
{% endfor %} {% if price_summary.depot_fee_general %}
{{ subscription.depot }}: {{ price_summary.depot_fee_general|floatformat:"-2u" }}
{% endif %} {% if show_depot_fee %} {{ price_summary.depot_fee_total|floatformat:"-2u" }} {% for surcharge, amount in price_summary.surcharges.items %}
{{ surcharge.date|date:"d.m.Y" }} - {{ surcharge.description }}: {{ amount|floatformat:"-2u" }}
{% endfor %} {% endif %} {{ price_summary.total|floatformat:"-2u" }} {% endblock %}