{% load static %} Отчет
Отчет
{% if form.errors %} {% for error in form.non_field_errors %}
Ошибка ввода
{{ error }}
{% endfor %} {% endif %}
{{ form.date_start }}
{{ form.date_end }}
{% csrf_token %}
{% if report_data %}
{{ date_start }} - {{ date_end }}

Подходят под условия компенсации

{% for accessed in report_data.accessed %}
{{ accessed.name }}

Количество посещений: {{ accessed.visits_count }}/{{ required_count }}

Договор {% for cheque in accessed.cheques %} Чек за {{ cheque.month }} {% endfor %}
{% endfor %}

Не подходят под условия компенсации

{% for not_accessed in report_data.not_accessed %}
{{ not_accessed.name }}

Количество посещений: {{ not_accessed.visits_count }}/{{ required_count }}

{% if not_accessed.contract %} Договор {% endif %} {% for cheque in not_accessed.cheques %} Чек за {{ cheque.month }} {% endfor %}
Причины отказа:
    {% for reason in not_accessed.reasons %}
  • {{ reason }}
  • {% endfor %}

{% endfor %}
{% endif %}