{% 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 == 'issued' else 'Черновик' }}

{% 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 %}

Позиции

{% for line in document.items %} {% endfor %}
Наименование Ед. Количество Цена Сумма
{{ line.work_item.name }} {{ line.work_item.unit or '' }} {{ line.quantity }} {{ 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 }}
Назад к списку {% endif %}
{% endblock %}