{% extends "base.html" %} {% block content %}

База брака

Список текущих остатков. Поиск и фильтры сужают этот список.

{% if can_import_defects %}Загрузить остатки{% endif %}
{% include "_defect_nav.html" %} {% if current %}
Текущий снимок: {{ current.filename }} {% if current.snapshot_on %}на {{ current.snapshot_on.strftime('%d.%m.%Y') }}{% endif %} · {{ current.rows_total }} строк · {{ current.product_count }} товаров · {{ current.warehouse_count }} мест хранения
{% else %}
База пока пуста. {% if can_import_defects %}Загрузите первый файл.{% endif %}
{% endif %}
Сбросить

Найдено: {{ result_total }}. Показаны {{ results|length }} на странице {{ page }} из {{ pages }}.

{% if pages > 1 %} {% endif %}
{% for row in results %} {% else %} {% endfor %}
НоменклатураМенеджерТекстовое описание Место храненияОстатокСебестоимость Сумма бракаБракОбработкаДата
{% set image_code = defect_image_code(row) %}{% include "_product_image.html" %}
{{ row.name }}
{{ row.product_kind or 'Без категории' }}
Артикул: {{ row.article or '—' }}
{{ row.manager or '—' }} {{ row.text_description or '—' }} {{ row.warehouse }} {{ row.quantity|num(3) }} {{ row.unit_cost|money }} {{ row.defect_amount|money }} {{ row.classification or '—' }}{% if row.defect_description %}
{{ row.defect_description }}
{% endif %}{% if row.service_conclusion %}
СЦ: {{ row.service_conclusion }}
{% endif %}
{{ processing_labels[row.processing_status] }}{% if row.processing_count %}
Событий: {{ row.processing_count }}{% if row.last_processed_at %}
Последнее: {{ row.last_processed_at.strftime('%d.%m.%Y') }}{% endif %}
{% endif %}
{% if row.defect_created_on %}{{ row.defect_created_on.strftime('%d.%m.%Y') }}{% else %}—{% endif %}
По заданным условиям ничего не найдено.
{% if pages > 1 %} {% endif %} {% endblock %}