fix(malaysia): 이동이력 낱개/콤보를 '입력 방식' 기준으로 구분

- 콤보 출고는 콤보 줄(set_movement)로만 표시. 분해된 구성 낱개는 숨김
  · create_set_out 구성 낱개 ref_type 을 SET_COMPONENT_REF('set')로 고정
  · 이동이력 낱개 목록에서 ref_type=SET_COMPONENT_REF 제외
- 직접 낱개 입력만 '낱개', 콤보 입력만 '콤보'로 표기(재고 계산엔 영향 없음)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 18:20:47 +09:00
parent 2ab38c7dbd
commit d3b06e1695
3 changed files with 12 additions and 2 deletions
+4 -1
View File
@@ -269,10 +269,13 @@ async def movements_page(request: Request) -> HTMLResponse:
mtype = (request.query_params.get("type") or "").strip().upper()
fdate = (request.query_params.get("date") or "").strip()
mt = mtype if mtype in store.MOVEMENT_TYPES else None
singles = st.list_movements(
raw_singles = st.list_movements(
warehouse_code=wh, movement_type=mt,
date_from=fdate or None, date_to=fdate or None, limit=300,
)
# 콤보 분해로 생긴 구성 낱개(ref_type=SET_COMPONENT_REF)는 '낱개 입력'이 아니므로
# 이동이력에서 숨긴다. 콤보는 아래 set_movement 줄로 표시된다.
singles = [m for m in raw_singles if (m.get("ref_type") or "") != store.SET_COMPONENT_REF]
for m in singles:
m["kind"] = "individual"
# 콤보(세트) 출고 원장도 함께 보여준다(낱개/콤보 분리 표시).