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

КС-2 №{{ 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 %}
КС-2 (Excel) КС-2 (Word) {% if document.status == 'cancelled' %}СТОРНИРОВАН{% endif %}
{% if document.status == 'cancelled' %} Назад к списку {% else %} {% if document.status == 'issued' %} {% if cancel_blocked_reason %} {% else %}
{% endif %} {% endif %}

Позиции

{% for line in document.items %} {% endfor %}
Наименование Ед. Количество Цена Сумма
{{ line.work_item.name }} {{ line.work_item.unit or '' }} {{ line.quantity|quantity2 }} {{ line.unit_price | money }} {{ line.amount | money }}
Итого {{ total | money }}
{% if document.status == 'draft' %} {% else %}

Источники факта

{% for line in document.items %} {% for source in line.sources %} {% endfor %} {% endfor %}
Наименование Дата отчёта Количество
{{ line.work_item.name }}
{{ source.daily_report_item.report.report_date.strftime('%d.%m.%Y') }} {{ source.quantity|quantity2 }}
Назад к списку {% endif %} {% endif %}
{% endblock %}