feat(cupang): 선택일 출고 항목 hover 툴팁(제품명+수량, 커서 따라감)

- index sel_shipments 에 품목 요약(name/qty) 첨부
- 리스트 항목 hover 시 커서 왼쪽에 따라다니는 툴팁 표시
- 캐시 버전 m

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 06:55:52 +09:00
parent 5c7730d4a1
commit 652e53c3e8
9 changed files with 83 additions and 10 deletions
+8
View File
@@ -137,6 +137,14 @@ async def index(request: Request) -> HTMLResponse:
s for s in shipments
if sel in (s.get("ship_date"), s.get("document_date"), s.get("center_arrival_date"))
]
# 각 묶음에 품목 요약(제품명/수량) 첨부 — hover 툴팁용
for s in sel_shipments:
full = store.get_shipment(shipment_id=s["id"])
s["items"] = [
{"name": ln.get("product_name_snapshot") or ln.get("product_code"),
"qty": ln.get("quantity", 0)}
for ln in (full.get("lines") if full else [])
]
cal = _calendar.Calendar(firstweekday=6) # 일요일 시작
weeks = cal.monthdatescalendar(year, month)