diff --git a/app/modules/cupang/router.py b/app/modules/cupang/router.py index 38f6c5b..47f6047 100644 --- a/app/modules/cupang/router.py +++ b/app/modules/cupang/router.py @@ -1435,6 +1435,11 @@ async def box_calc_confirm( # 구글 스프레드시트에 출고일 시트 기록(설정돼 있을 때만). sheet = _push_to_google_sheet(store, ship_date) + print( # noqa: T201 - 컨테이너 로그로 확인용(비밀값 없음) + f"[cupang] sheet push date={ship_date} ok={sheet.get('ok')} " + f"skipped={sheet.get('skipped')} reason={sheet.get('reason', '')}", + flush=True, + ) return JSONResponse({"created": created, "ship_date": ship_date, "sheet": sheet}) diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index 9326713..0687e07 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -1333,8 +1333,9 @@ window.location.href = "/cupang/export.xlsx?date=" + encodeURIComponent(d); // 구글 시트 기록 결과 (설정돼 있을 때만 동작) var sh = (data && data.sheet) || {}; - var sheetNote = sh.ok ? "구글 시트 " + (sh.title || "") + " 기록 완료" - : (sh.skipped ? "" : "구글 시트 기록 실패 — " + (sh.reason || "")); + var sheetNote = sh.ok + ? "구글 시트 " + (sh.title || "") + " 기록 완료" + : "구글 시트 기록 안 됨 — " + (sh.reason || "사유 불명"); // 업로드한 출고일이 여러 개면 남은 날짜 작업을 이어서 한다. var idx = dateOrder.indexOf(activeDate); if (idx >= 0 && dateOrder.length > 1) {