feat(실적): 카페24(실적) 열·합계 기준 통일·공통 보기 설정·일 합계 고정

매출 실적
- "카페24" 열 → "카페24(전체)", 바로 오른쪽 "카페24(실적)" = 전체 − 자사몰(공동구매),
  광고비 줄은 카페24(전체)의 구글·메타 그대로 (예전 "공구 제외" 열 대체)
- 합계 기준 통일: 일 합계·ROAS·KPI·추이·비중·월/연 누적 = 카페24(실적) + 공동구매 + 나머지
  (카페24(전체)에 공동구매가 들어 있어 이중 합산 제거, 그래프·누적의 카페24 줄 = 카페24(실적))
- 실적 설정 "공통 보기 설정"(관리자, perf_settings, 모든 사용자 적용):
  매출 단위(예전 브라우저 쿠키 perf_unit 대체), 표 열 숨기기(열만, 합계 그대로)
  표 열 너비는 사람(브라우저)마다 그대로

매출 실적·광고비 공통
- 일 합계 열을 날짜 오른쪽으로, 날짜와 함께 가로 고정
- 이전달·다음달 = 날짜 바로 옆 진한 회색 화살표 SVG(글자 높이)
- 광고비 탭 매출 대비 광고비·합계 ROAS 도 공동구매 이중 합산 제거

CSS·JS 캐시 버전 20261102a. 새 마이그레이션 없음(011 perf_settings 사용).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 12:21:33 +09:00
parent ff3b36bf77
commit 884e654bea
15 changed files with 498 additions and 129 deletions
+17
View File
@@ -73,6 +73,23 @@ async function stickyFlow(browser, file, label) {
const g2 = await geo();
check(label + " 가로 스크롤해도 기간 합계 날짜 칸은 왼쪽 고정", Math.abs(g2.labelLeft - g2.wrapLeft) <= 1.5 && g2.hitLabel &&
Math.abs(g2.headTop - g2.pageTop) <= 1, g2);
// 일 합계 열 — 날짜 열 바로 오른쪽에 함께 고정(제목·기간 합계·일 행 모두), 위에 다른 칸이 안 겹침(2026-11-02)
const tg = await p.evaluate(function () {
const box = function (s) { return document.querySelector(s).getBoundingClientRect(); };
const hit = function (s) { const r = box(s), n = document.elementFromPoint(r.left + r.width / 2, r.top + r.height / 2); return !!n.closest(s); };
const label = box(".perf-main thead th.perf-th-label");
const rows = [".perf-main thead th.perf-th-total", ".perf-main tbody tr.perf-row-total:first-child > .perf-td-total", ".perf-main tbody tr.perf-row-day > .perf-td-total"];
return { labelRight: label.right, lefts: rows.map(function (s) { return box(s).left; }), hits: rows.slice(0, 2).map(hit), scrolled: document.querySelector(".perf-main-wrap").scrollLeft };
});
check(label + " 가로 스크롤해도 일 합계 열은 날짜 열 바로 옆 고정", tg.scrolled > 0 && tg.lefts.every(function (x) { return Math.abs(x - tg.labelRight) <= 1.5; }) && tg.hits.every(Boolean), tg);
// 기간 이동 — 날짜 바로 좌우 화살표 SVG(글자 높이), 글자 없음
const nv = await p.evaluate(function () {
const a = document.querySelectorAll(".perf-nav-btn"), lb = document.querySelector(".perf-nav-label").getBoundingClientRect();
const svg = a[0].querySelector("svg");
return { text: a[0].textContent.trim() + a[1].textContent.trim(), h: svg.getBoundingClientRect().height, size: parseFloat(getComputedStyle(document.querySelector(".perf-nav-label")).fontSize),
stroke: getComputedStyle(svg).stroke, gapL: lb.left - a[0].getBoundingClientRect().right, gapR: a[1].getBoundingClientRect().left - lb.right };
});
check(label + " 기간 이동 = 날짜 바로 옆 글자 높이 화살표(진한 회색)", nv.text === "" && Math.abs(nv.h - nv.size) <= 1 && nv.gapL <= 3 && nv.gapR <= 3 && nv.stroke === "rgb(68, 68, 68)", nv);
// 표 끝을 넘어가면 같이 올라간다(표 밖으로 나가지 않음)
await p.evaluate(function () { const pg = document.querySelector(".erp-page"); pg.scrollTop = pg.scrollHeight; });
await p.waitForTimeout(120);