From bd79d20eb1c3c2fbeefbd9cab6e3f9f4df31020b Mon Sep 17 00:00:00 2001 From: king Date: Fri, 19 Jun 2026 18:58:06 +0900 Subject: [PATCH] =?UTF-8?q?feat(dispatch):=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=EB=8B=A8=EA=B3=84=EB=A5=BC=203=EA=B0=9C=EB=A1=9C=20=EC=B6=95?= =?UTF-8?q?=EC=86=8C(=EB=9D=BC=EB=B2=A8=EB=B6=80=EC=B0=A9=C2=B7Kagayaku?= =?UTF-8?q?=EC=A0=84=EB=8B=AC=C2=B7=ED=83=9D=EB=B0=B0=EC=8A=A4=EC=BA=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 상품은 미리 제작·박스 포장까지 끝나 들어오므로 상품준비/포장완료 단계 제거. - STATUS_FIELDS 3개로 축소(DB 컬럼 product_ready/packed 는 보존) - 카드 버튼·필터(미포장/포장완료 → 미완료) 갱신 - 완료 판정/카운트는 STATUS_FIELDS 기준이라 자동 반영 Co-Authored-By: Claude Opus 4.8 --- app/modules/dispatch/store.py | 5 +++-- app/modules/dispatch/templates/dispatch/detail.html | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/modules/dispatch/store.py b/app/modules/dispatch/store.py index e88586d..0aa71b8 100644 --- a/app/modules/dispatch/store.py +++ b/app/modules/dispatch/store.py @@ -20,9 +20,10 @@ from typing import Any, Iterable # ── 작업 상태 필드(토글 대상) ── # 순서 = 작업 진행 순서. label_ko/label_en 은 버튼 표기. +# 상품은 미리 제작·박스 포장까지 끝난 상태로 들어오므로 product_ready/packed +# 단계는 화면에서 쓰지 않는다(DB 컬럼은 보존 — 과거 데이터/확장 대비). +# 실제 작업: 송장 라벨 부착 → Kagayaku 전달 → 택배 스캔 확인. STATUS_FIELDS: tuple[str, ...] = ( - "product_ready", - "packed", "label_attached", "handed_to_kagayaku", "courier_scanned", diff --git a/app/modules/dispatch/templates/dispatch/detail.html b/app/modules/dispatch/templates/dispatch/detail.html index da1582c..1ae9e61 100644 --- a/app/modules/dispatch/templates/dispatch/detail.html +++ b/app/modules/dispatch/templates/dispatch/detail.html @@ -42,8 +42,7 @@
- - + @@ -54,11 +53,9 @@
{% for p in parcels %} - {% set is_done = p.product_ready and p.packed and p.label_attached and p.handed_to_kagayaku and p.courier_scanned %} + {% set is_done = p.label_attached and p.handed_to_kagayaku and p.courier_scanned %}