From aedb5f1fdb10648af7e36971c80be583acc67cae Mon Sep 17 00:00:00 2001 From: king Date: Wed, 17 Jun 2026 16:44:23 +0900 Subject: [PATCH] =?UTF-8?q?fix(malaysia):=20=EB=9E=99=20=EC=97=91=EC=85=80?= =?UTF-8?q?=20=ED=95=A9=EA=B3=84=20=EC=A0=9C=EB=AA=A9=ED=96=89=20=EB=B0=B0?= =?UTF-8?q?=EA=B2=BD=EC=83=89=20=EC=9C=84=EC=B9=98=20=EC=96=B4=EA=B8=8B?= =?UTF-8?q?=EB=82=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit append([]) 은 셀이 없어 max_row 가 증가하지 않아, 합계 제목행 대신 바로 위 빈 줄에 배경색이 칠해졌다. 빈 문자열 셀로 한 줄 띄우고 제목행 추가 직후 max_row 로 정확한 행을 잡아 스타일 적용. Co-Authored-By: Claude Opus 4.8 --- app/modules/malaysia/router.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/modules/malaysia/router.py b/app/modules/malaysia/router.py index 99979b5..fc4abed 100644 --- a/app/modules/malaysia/router.py +++ b/app/modules/malaysia/router.py @@ -529,10 +529,12 @@ async def rack_export(request: Request) -> StreamingResponse: ws.auto_filter.ref = f"A1:{get_column_letter(len(header))}{detail_last}" # ── 아이템별 합계 표 (상세표 아래, 한 줄 띄움) ── - ws.append([]) - sum_header_row = ws.max_row + 1 + # 빈 셀 행으로 한 줄 띄움(append([]) 은 셀이 없어 max_row 가 안 늘어 위치가 + # 어긋나므로 빈 문자열 셀을 넣는다). + ws.append([""]) sum_header = ["아이템 코드", "이름", "합계 수량"] ws.append(sum_header) + sum_header_row = ws.max_row # 방금 추가한 합계 제목행(셀이 있어 정확) for code, name, total in summary_rows: ws.append([code, name, total]) _style_header(sum_header_row, len(sum_header))