diff --git a/app/modules/malaysia/store.py b/app/modules/malaysia/store.py index 08d44e0..dd6a038 100644 --- a/app/modules/malaysia/store.py +++ b/app/modules/malaysia/store.py @@ -34,17 +34,21 @@ RACK_SIDES: tuple[str, ...] = ("A", "B") RACK_ROWS: tuple[int, ...] = (3, 2, 1) RACK_COLS: tuple[int, ...] = (1, 2, 3) RACK_SUBS: tuple[int, ...] = (1, 2) +# Side B 아래 바닥(Ground) 파렛트 6칸. 코드: 'G1' ~ 'G6'. +RACK_GROUND: tuple[str, ...] = ("G1", "G2", "G3", "G4", "G5", "G6") def rack_cell_codes() -> list[str]: - """모든 랙 칸 코드 목록(검증용). 예: 'A3-1-1' ... 'B1-3-2'.""" - return [ + """모든 랙 칸 코드 목록(검증용). 예: 'A3-1-1' ... 'B1-3-2', 'G1'~'G6'.""" + codes = [ f"{side}{row}-{col}-{sub}" for side in RACK_SIDES for row in RACK_ROWS for col in RACK_COLS for sub in RACK_SUBS ] + codes.extend(RACK_GROUND) + return codes def rack_layout() -> list[dict[str, Any]]: @@ -61,7 +65,13 @@ def rack_layout() -> list[dict[str, Any]]: for col in RACK_COLS ] rows.append({"row": row, "cols": cols}) - out.append({"side": side, "rows": rows}) + out.append({"side": side, "label": f"Side {side}", "rows": rows}) + # Side B 아래 Ground: 6칸(G1~G6)을 한 줄에. 각 칸은 분할 없는 단일 파렛트. + out.append({ + "side": "Ground", + "label": "Ground", + "rows": [{"row": 0, "cols": [[code] for code in RACK_GROUND]}], + }) return out diff --git a/app/modules/malaysia/templates/malaysia/rack_view.html b/app/modules/malaysia/templates/malaysia/rack_view.html index 33d938f..a69c119 100644 --- a/app/modules/malaysia/templates/malaysia/rack_view.html +++ b/app/modules/malaysia/templates/malaysia/rack_view.html @@ -153,7 +153,7 @@
{% for side in rack_layout %}
-

Side {{ side.side }}

+

{{ side.label }}

{% for row in side.rows %}
{% for col in row.cols %} diff --git a/app/modules/malaysia/templates/malaysia/stocktake_detail.html b/app/modules/malaysia/templates/malaysia/stocktake_detail.html index 167e11c..5808320 100644 --- a/app/modules/malaysia/templates/malaysia/stocktake_detail.html +++ b/app/modules/malaysia/templates/malaysia/stocktake_detail.html @@ -124,7 +124,7 @@
{% for side in rack_layout %}
-

Side {{ side.side }}

+

{{ side.label }}

{% for row in side.rows %}
{% for col in row.cols %}