{% load juntagrico.snippets %} {% load i18n %}
{% trans 'Bestellt' %} {{ ordered_shares.count }}
{% regroup ordered_shares by creation_date as ordered_shares_by_date %} {% for shares in ordered_shares_by_date %}
{{shares.list|length }} ({% sequence shares.list attribute='identifier' prefix='#' %}) {{ shares.grouper|date:"SHORT_DATE_FORMAT" }}
{% endfor %} {% for share in ordered_shares %} {% if share.notes %}
#{{ share.identifier }} {{ share.notes|linebreaksbr }}
{% endif %} {% endfor %}
{% trans 'Bezahlt' %} {{ active_shares.count }}
{% regroup active_shares by paid_date as active_shares_by_date %} {% for shares in active_shares_by_date %}
{{shares.list|length }} ({% sequence shares.list attribute='identifier' prefix='#' %}) {{ shares.grouper|date:"SHORT_DATE_FORMAT" }}
{% endfor %} {% for share in active_shares %} {% if share.notes %}
#{{ share.identifier }} {{ share.notes|linebreaksbr }}
{% endif %} {% endfor %}
{% if canceled_shares.exists %}
{% trans 'Davon gekündigt' %} {{ canceled_shares.count }}
{% regroup canceled_shares by termination_date as canceled_shares_by_date %} {% for shares in canceled_shares_by_date %}
{% sequence shares.list attribute='identifier' prefix='#' %} {{ shares.grouper|date:"SHORT_DATE_FORMAT" }}
{% endfor %}
{% endif %}