{% extends "base.html" %} {% block title %}{{ 'Редактирование' if document else 'Создание' }} КС-2{% endblock %} {% block content %}

{{ 'Редактирование КС-2' if document else 'Создание КС-2' }}

{% if error %} {% endif %}

Объёмы к закрытию

Подставляет доступный остаток по всем позициям. Количество можно править вручную в любой момент.
{% for balance in balances %} {% set item_id = balance.item.id %} {% set available = balance.available_quantity %} {% set qty_value = form_values.get('quantity_' ~ item_id, selected.get(item_id, '')) %} {% endfor %}
№ поз. Наименование Ед. План Факт Закрыто Доступно Цена Кол-во Сумма
{{ balance.item.source_number or '' }} {{ balance.item.name }} {{ balance.item.unit or '' }} {{ balance.planned_quantity|quantity2 }} {{ balance.actual_quantity|quantity2 }} {{ balance.closed_quantity|quantity2 }} {{ available|quantity2 }} {% if available <= 0 %} нет остатка {% endif %} {{ balance.item.unit_price|money }} —
Отмена
{% endblock %}