{% extends "erp_base.html" %} {% macro rack_row(cell, items, entry=None, disabled=False) %}
합계 {{ "{:,}".format(entry.units_per_box * entry.box_count) if entry else 0 }} {% if not disabled %}{% endif %}
{% endmacro %} {% block head_extra %} {% endblock %} {% block content %}
{% include "malaysia/_i18n.html" %}
◀◀ 조사 목록

재고조사 #{{ stocktake.id }}

날짜 {{ stocktake.stocktake_date }}
창고 {{ stocktake.warehouse_code }}
상태 {% if stocktake.status=='finalized' %}확정 {% elif stocktake.status=='cancelled' %}취소 {% else %}작성중{% endif %}
{% if stocktake.finalized_at %}
확정시각 {{ stocktake.finalized_at }}
{% endif %} {% if missing_bom %}⚠ BOM 누락: {{ missing_bom|join(', ') }}{% endif %} 랙 칸에 아이템·입수량(박스당 개수)·박스 수를 입력하면 낱개/콤보 수량이 자동 집계됩니다. 한 칸에 여러 아이템은 + 로 추가하세요. {% if is_draft %}{% endif %}

랙 입력 (박스 단위)

{% for side in rack_layout %}

Side {{ side.side }}

{% for row in side.rows %}
{% for col in row.cols %} {% for cell in col %}
{{ cell }} 0 {% if is_draft %}{% endif %}
{% set entries = rack_by_cell.get(cell, []) %} {% for e in entries %} {{ rack_row(cell, rack_items, entry=e, disabled=(not is_draft)) }} {% endfor %} {% if is_draft and not entries %} {{ rack_row(cell, rack_items) }} {% endif %}
{% endfor %} {% endfor %}
{% endfor %}
{% endfor %}
{% if is_draft %} {% if is_admin %}
{% endif %}
{% endif %} {% if is_super %}
{% endif %}

최종 계산 (낱개 기준)

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 }}
입력된 수량이 없습니다.
{% endblock %}