feat(cupang): 출고 박스 구성(box_plan) 저장 + 달력 상세를 센터 분배 형식으로
- 마이그레이션 005: cupang_shipments.box_plan JSONB (확정 당시 박스 구성) 확정 payload 에서 제품별/혼합 상자와 내용물·상자 종류를 받아 저장 - 달력 오른쪽 목록을 ③ 센터 분배 카드 형식으로 변경 — 혼합 상자는 내용물 트리까지 표시. box_plan 이 없는 예전 출고는 기존 합계 표시로 폴백 - 출고 보기(view.html) ③ 목록도 동일하게 box_plan 기준 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/cupang.css?v=20260901m" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/cupang.css?v=20260901n" />{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{# 출고 묶음 보기 — 박스 계산 화면과 같은 3열 구성. 읽기 전용(수정 없음). #}
|
||||
@@ -140,14 +140,33 @@
|
||||
</span>
|
||||
</div>
|
||||
<ul class="cpg-dist-items">
|
||||
{% for it in items %}
|
||||
<li class="cpg-dist-item">
|
||||
<div class="cpg-dist-line">
|
||||
<span class="cpg-dist-name">{{ it.product_name }}</span>
|
||||
<span class="cpg-dist-unit">{{ it.quantity }}개</span>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if shipment.box_plan %}
|
||||
{% for e in shipment.box_plan %}
|
||||
<li class="cpg-dist-item{% if e.kind == 'mix' %} is-mix{% endif %}">
|
||||
<div class="cpg-dist-line">
|
||||
<span class="cpg-dist-name">{{ e.name }}</span>
|
||||
<span class="cpg-dist-unit">{{ e.count }}박스 · {{ e.quantity }}개</span>
|
||||
</div>
|
||||
{% if e.kind == 'mix' and e['items'] %}
|
||||
<ul class="cpg-dist-tree">
|
||||
{% for it in e['items'] %}
|
||||
<li><span class="cpg-tree-name">{{ it.product_name }}</span>
|
||||
<span class="cpg-tree-qty">{{ it.quantity }}개</span></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for it in items %}
|
||||
<li class="cpg-dist-item">
|
||||
<div class="cpg-dist-line">
|
||||
<span class="cpg-dist-name">{{ it.product_name }}</span>
|
||||
<span class="cpg-dist-unit">{{ it.quantity }}개</span>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user