{% extends "erp_base.html" %} {% block head_extra %}{% endblock %} {% block content %} {# 출고 묶음 보기 — 상자 계산 화면과 같은 3열 구성. 읽기 전용(수정 없음). #}
◀◀ 달력 {{ shipment.status }}

① 품목

{{ items|length }}종 · {{ total_qty }}개
{% for it in items %} {% endfor %} {% if not items %} {% endif %}
제품명수량
{{ it.product_name }} {{ it.quantity }}
품목이 없습니다.

② 상자 목록

상자마다 담긴 제품과 수량 체크 0/{{ box_list|length }} 엑셀 다운로드
총 상자 {{ box_list|length }}상자 제품별 + 혼합
출고 {{ shipment.outbound_summary or '—' }} 확정 시 기록
총 수량 {{ total_qty }}개 {{ items|length }}종
{% if box_weight %}{% endif %} {% if box_weight %}{% endif %} {% for b in box_list %} {% for it in b['items'] %} {% if loop.first %} {% endif %} {% if box_weight and loop.first %} {# 상자 무게 합계 — 상자번호처럼 상자 단위로 한 칸. 무게 없는 제품이 있으면 표시 #} {% set miss = b.weight_missing or [] %} {% endif %} {% endfor %} {% endfor %} {% if not box_list %} {% endif %} {% if box_list %} {# 합계 행 — 수량 합계, 무게 합계(kg). 무게 없는 제품이 있으면 아는 무게만 더한 값 #} {% if box_weight %} {% endif %} {% endif %}
상자번호제품명제품코드수량무게
{{ b.no }}{{ it.product_name }} {{ it.product_code }} {{ it.quantity }} {%- if b.weight_g is not none -%} {{ b.weight_kg }}kg{% if miss %}일부 미입력{% endif %} {%- else -%}—{%- endif -%}
상자 정보가 없습니다.
합계 {{ "{:,}".format(box_qty_total) }} {%- if box_weight_total_kg is not none -%} {{ box_weight_total_kg }}kg{% if box_weight_partial %}일부 미입력{% endif %} {%- else -%}—{%- endif -%}

③ 센터

출고 #{{ shipment.id }}
{{ shipment.center_name_snapshot or '센터 미지정' }} {{ shipment.ship_method }} {{ calc.grand_total_boxes }}상자 {{ total_qty }}개
    {% if shipment.box_plan %} {% for e in shipment.box_plan %}
  • {{ e.name }} {{ e.count }}상자 · {{ e.quantity }}개
    {% if e.kind == 'mix' and e['items'] %}
      {% for it in e['items'] %}
    • {{ it.product_name }} {{ it.quantity }}개
    • {% endfor %}
    {% endif %}
  • {% endfor %} {% else %} {% for it in items %}
  • {{ it.product_name }} {{ it.quantity }}개
  • {% endfor %} {% endif %}
작성일
{{ shipment.document_date }}
출고일
{{ shipment.ship_date }}
센터입고일
{{ shipment.center_arrival_date }}
작업자
{{ shipment.worker or '—' }}
{% if shipment.memo %}
메모
{{ shipment.memo }}
{% endif %}
{% endblock %}