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

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

{% endif %}

Позиции

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

Источники

{% 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.daily_report_item.report.id }}) {{ source.quantity }}
Редактировать
{% else %} {% endif %} Назад к списку
{% endblock %}