feat(실적): 공동구매 칸 저장 즉시 카페24(공구 제외) 칸 반영
- 공동구매 날짜 칸을 저장하면 같은 줄 차이 칸 = 카페24 − 저장 응답(총매출·수수료·차감) - 차이 칸에 data-diff-minus·data-base(카페24 값) — 일 행만, 합계 줄은 새로고침 때 - performance.js 캐시 버전 20261030a Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -241,7 +241,8 @@ def test_cafe24_minus_groupbuy_column():
|
||||
assert dashboard.CAFE24_EX_GB not in [c["code"] for c in ctx["cols"]]
|
||||
st._find("custom_c")["parent_code"] = "group_x"
|
||||
ctx = dashboard.build_dashboard(st, kind="week", anchor=TODAY, today=TODAY)
|
||||
assert ctx["cols"][-1] == {"code": dashboard.CAFE24_EX_GB, "kind": "diff", "group": "group_x"}
|
||||
assert ctx["cols"][-1] == {"code": dashboard.CAFE24_EX_GB, "kind": "diff", "group": "group_x",
|
||||
"base": "cafe24", "minus": "custom_c"}
|
||||
|
||||
|
||||
def test_dashboard_page_renders_cafe24_minus_groupbuy(client):
|
||||
@@ -253,3 +254,5 @@ def test_dashboard_page_renders_cafe24_minus_groupbuy(client):
|
||||
assert "카페24(공구 제외)" in head
|
||||
body = html.split("<tbody>", 1)[1].split("</tbody>", 1)[0]
|
||||
assert "700,000" in body
|
||||
# 일 행만 화면 즉시 계산용 값(카페24 총매출,수수료,차감) — performance.js saveManual
|
||||
assert 'data-diff-minus="custom_c" data-base="1000000,0,1000000"' in body
|
||||
|
||||
Reference in New Issue
Block a user