{% extends "base.html" %} {% block title %}КС-3 №{{ document.number }} от {{ document.date.strftime('%d.%m.%Y') }}{% endblock %} {% block content %}

КС-3 №{{ document.number }} от {{ document.date.strftime('%d.%m.%Y') }}

Статус: {% if document.status == 'cancelled' %} Сторнирован {% elif document.status == 'issued' %} Проведён {% else %} Черновик {% endif %}

{% if document.reporting_period_from and document.reporting_period_to %}

Период: {{ document.reporting_period_from.strftime('%d.%m.%Y') }} — {{ document.reporting_period_to.strftime('%d.%m.%Y') }}

{% endif %} {% if document.comment %}

Комментарий: {{ document.comment }}

{% endif %}
{% if document.status == 'cancelled' %} Назад к списку {% else %}

Включённые КС-2

{% for row in ks2_rows %} {% else %} {% endfor %}
№ КС-2 Дата Период Сумма
{{ row.ks2.number }} {{ row.ks2.date.strftime('%d.%m.%Y') }} {% if row.ks2.reporting_period_from and row.ks2.reporting_period_to %}{{ row.ks2.reporting_period_from.strftime('%d.%m.%Y') }} — {{ row.ks2.reporting_period_to.strftime('%d.%m.%Y') }}{% endif %} {{ row.total | money }}
Нет включённых КС-2.
Итого {{ total | money }}
{% if document.status == 'draft' %} {% else %}
Назад к списку {% endif %} {% endif %}
{% endblock %}