feat(performance): 일자별 표 날짜 mm/dd(요일)·폭 210px, 주문 내역 창 열 제목 고정·취소 표시
- 일자별 × 쇼핑몰: 날짜 "09/01(화)" 형식, 공휴일 이름은 날짜 바로 오른쪽, 날짜 열 너비 210px 고정 - 주문 내역 창: 열 제목 가운데·굵게·150%(18px), 창을 스크롤해도 위에 고정 - 구분 "취소"는 기울임 + 취소선 + 회색 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -110,7 +110,8 @@ def fmt_md(d: date) -> str:
|
||||
|
||||
|
||||
def day_label(d: date) -> str:
|
||||
return f"{WEEKDAYS_KO[d.weekday()]} {fmt_md(d)}"
|
||||
"""일자별 표 날짜 — mm/dd(요일), 예: 09/01(화)."""
|
||||
return f"{d.month:02d}/{d.day:02d}({WEEKDAYS_KO[d.weekday()]})"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/performance.css?v=20260930c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/performance.css?v=20260930d" />{% endblock %}
|
||||
|
||||
{%- macro won(v) -%}
|
||||
{%- if v is none -%}<span class="perf-na"></span>
|
||||
@@ -239,4 +239,4 @@
|
||||
} | tojson }}</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}<script src="/static/performance.js?v=20260930p" defer></script>{% endblock %}
|
||||
{% block scripts %}<script src="/static/performance.js?v=20260930q" defer></script>{% endblock %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/performance.css?v=20260930c" />{% endblock %}
|
||||
{% block head_extra %}<link rel="stylesheet" href="/static/performance.css?v=20260930d" />{% endblock %}
|
||||
|
||||
{%- macro when(v) -%}{{ (v or '')[:16] | replace('T', ' ') or '—' }}{%- endmacro -%}
|
||||
|
||||
@@ -155,4 +155,4 @@
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}<script src="/static/performance.js?v=20260930p" defer></script>{% endblock %}
|
||||
{% block scripts %}<script src="/static/performance.js?v=20260930q" defer></script>{% endblock %}
|
||||
|
||||
@@ -172,7 +172,7 @@ def test_main_table_week():
|
||||
cells = _cells_for(days, ["a", "b"])
|
||||
rows = calc.main_table(p, ["a", "b"], cells, today=date(2026, 9, 30), holidays={"2026-10-03": "개천절"})
|
||||
assert [r["kind"] for r in rows] == ["day"] * 7 + ["week"]
|
||||
assert rows[0]["label"] == "월 9/28" and rows[6]["label"] == "일 10/4"
|
||||
assert rows[0]["label"] == "09/28(월)" and rows[6]["label"] == "10/04(일)"
|
||||
assert rows[5]["holiday"] == "개천절" and rows[2]["today"] and rows[3]["future"]
|
||||
week = rows[-1]
|
||||
assert week["cells"]["a"] == {"gross": 70_000, "commission": 7_000, "net": 63_000}
|
||||
|
||||
Reference in New Issue
Block a user