{% extends "erp_base.html" %} {% block head_extra %}{% endblock %} {% block content %}

{{ months[0].label }} – {{ months[1].label }}

오늘 {% for m in months %}
{{ m.month }}월 {{ m.year }} {% if m.ship_total %} 출고 {{ m.ship_total }}건 {% endif %}
{% for wd in weekdays %}
{{ wd }}
{% endfor %} {% for week in m.weeks %} {% for cell in week %} {{ cell.day }} {% if cell.holiday_name %} {{ cell.holiday_name }} {% endif %} {% if cell.counts.ship %} {{ cell.counts.ship }}건{{ cell.counts.centers }}곳 {% endif %} {% endfor %} {% endfor %}
{% endfor %}
출고 있는 날 오늘 선택한 날

{{ selected_date }} 출고

{{ sel_shipments|length }}건 {% if sel_shipments %} {% endif %}
{% if sel_shipments %}
    {% for s in sel_shipments %} {# ③ 센터 분배 카드와 같은 형식 — 혼합 상자는 내용물까지 펼쳐 보여준다 #}
  • {{ s.center_name_snapshot or '센터 미지정' }} {{ s.ship_method }} {{ s.total_boxes }}상자 {{ s.total_qty }}개
      {% if s.box_plan %} {% for e in s.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 s['items'] %}
    • {{ it.name }} {{ it.boxes }}상자 · {{ it.qty }}개
    • {% endfor %} {% endif %}
    출고 {{ s.ship_date }} · 센터입고 {{ s.center_arrival_date }}
  • {% endfor %}
{% else %}

선택한 날짜의 출고 묶음이 없습니다. 상자 계산에서 등록

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}