{% extends "erp_base.html" %} {% block content %}
◀◀ 조사 목록

재고조사 #{{ stocktake.id }} — {{ stocktake.stocktake_date }} · {{ stocktake.warehouse_code }}

{% if stocktake.status=='finalized' %}확정 ({{ stocktake.finalized_at }}) {% elif stocktake.status=='cancelled' %}취소 {% else %}작성중{% endif %}
{% if missing_bom %}

⚠ BOM 구성이 없는 세트: {{ missing_bom|join(', ') }} — 세트 구성 등록 전에는 확정할 수 없습니다.

{% endif %}
{% if is_draft %}

① 낱개 아이템 입력

세트 안에 든 건 빼고, 낱개로 보관 중인 수량만 입력

② 세트 아이템 입력

미리 포장된 세트 재고 수량 (BOM 으로 낱개 분해됨)
{% endif %}

입력 라인 ({{ stocktake.lines|length }})

{% if is_draft %}{% endif %} {% for ln in stocktake.lines %} {% if is_draft %} {% endif %} {% endfor %} {% if not stocktake.lines %} {% endif %}
SKUQtyMemo
{{ ln.sku_code }} {{ ln.qty }} {{ ln.memo or '—' }}
입력된 라인이 없습니다.

최종 계산 (낱개 기준)

total_qty = direct_qty(낱개 직접) + from_set_qty(세트 분해)
{% for r in result_rows %} {% endfor %} {% if not result_rows %} {% endif %}
Item CodeProduct NameDirectFrom SetTotal
{{ r.item_code }} {{ r.item_name }} {{ r.direct_qty }} {{ r.from_set_qty }} {{ r.total_qty }}
계산 결과가 없습니다.
{% if is_draft %}
{% endif %}
{% endblock %}