From 8763b0d19f6eb9ba117ba9a4ac561f81e7c21a21 Mon Sep 17 00:00:00 2001 From: king Date: Sun, 20 Sep 2026 21:21:29 +0900 Subject: [PATCH] =?UTF-8?q?feat(malaysia):=20=EC=9E=AC=EA=B3=A0=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EB=A9=94=EC=9D=B8=20=ED=99=94=EB=A9=B4=EC=97=90?= =?UTF-8?q?=EB=8F=84=20=EC=9E=90=EB=8F=99=20=EB=B9=84=EA=B5=90=20=EC=97=91?= =?UTF-8?q?=EC=85=80=20=EB=B2=84=ED=8A=BC=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 가장 최근 확정 재고조사 기준 export-compare 링크를 재고 현황 카드 헤더에 추가. 재고조사 상세 페이지까지 안 들어가도 메인 탭에서 바로 다운로드 가능. Co-Authored-By: Claude Sonnet 5 --- app/modules/malaysia/router.py | 3 +++ app/modules/malaysia/templates/malaysia/index.html | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/modules/malaysia/router.py b/app/modules/malaysia/router.py index e13e28e..b0d49c6 100644 --- a/app/modules/malaysia/router.py +++ b/app/modules/malaysia/router.py @@ -169,6 +169,9 @@ async def index(request: Request) -> HTMLResponse: "rows": rows, "set_rows": set_stock["rows"], "set_stocktake_date": set_stock["stocktake_date"], + "latest_stocktake_id": latest["id"] if latest else None, + "latest_stocktake_date": last_date, + "latest_stocktake_finalized": bool(latest and latest.get("status") == "finalized"), } ) return render_template(request, "malaysia/index.html", ctx) diff --git a/app/modules/malaysia/templates/malaysia/index.html b/app/modules/malaysia/templates/malaysia/index.html index a100025..53d4d9b 100644 --- a/app/modules/malaysia/templates/malaysia/index.html +++ b/app/modules/malaysia/templates/malaysia/index.html @@ -24,9 +24,13 @@
-
+

전산 재고 현황 — 낱개 기준 ({{ rows|length }})

현재고 = 입고 − 출고 + 조정 + 재고조사반영 (콤보는 낱개로 분해 반영됨) + {% if latest_stocktake_finalized %} + 자동 비교 엑셀 다운로드 ({{ latest_stocktake_date }}) + {% endif %}