diff --git a/app/modules/inout/CLAUDE.md b/app/modules/inout/CLAUDE.md index ea60fce..102f28f 100644 --- a/app/modules/inout/CLAUDE.md +++ b/app/modules/inout/CLAUDE.md @@ -12,6 +12,7 @@ - 미입고 현황(제품별 합계·발주별·지연). - 발주 목록 상태 보기(진행 중·완료·종결·취소·전체)는 **사람마다 기억**(2026-11-04) — `inout_settings` 키 `list_status:{이메일}`(마이그레이션 없음, 005 미적용이면 기억만 안 함). 주소에 `status` 가 있으면 저장, 없으면 저장값, 그것도 없으면 진행 중. - 발주 목록 **입고일** 열(2026-11-05, 입고 예정일과 발주 사이, `db.list_orders` `receipt_dates`) — 여러 날에 나눠 입고하면 칸 안에서 줄바꿈(오래된 날부터), 같은 날 여러 번은 한 번만, 입고 전 `-`. +- 발주 목록 거르기 줄(2026-11-05) — 상태·공장은 왼쪽, 발주일~[찾기]는 오른쪽(`.io-filter-right`). - 발주 목록 표 머리글(2026-11-05, `.io-list-table`) = 가운데·굵게·`--text-caption` × 111%·회색 배경. 미입고 현황 등 다른 표는 그대로. - [남은 수량 모두 채우기]를 한 번 더 누르면(= [채운 수량 되돌리기]) 채우기 전 값으로(2026-10-19, `inout.js`). - 초과 입고는 확인 화면 후 허용(트랜잭션 안에서 발주서 잠그고 판단, `confirm_over`). diff --git a/app/modules/inout/templates/inout/index.html b/app/modules/inout/templates/inout/index.html index 9023984..f9b0e04 100644 --- a/app/modules/inout/templates/inout/index.html +++ b/app/modules/inout/templates/inout/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import order_badge, progress, due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} @@ -21,11 +21,13 @@ {% for f in factories %}{% endfor %} +
~ +
diff --git a/app/modules/inout/templates/inout/order_detail.html b/app/modules/inout/templates/inout/order_detail.html index 7864252..681b331 100644 --- a/app/modules/inout/templates/inout/order_detail.html +++ b/app/modules/inout/templates/inout/order_detail.html @@ -20,7 +20,7 @@ {%- endmacro -%} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} {% set active = order.status in ('open', 'partial') %} diff --git a/app/modules/inout/templates/inout/order_form.html b/app/modules/inout/templates/inout/order_form.html index 5e45727..8a74f53 100644 --- a/app/modules/inout/templates/inout/order_form.html +++ b/app/modules/inout/templates/inout/order_form.html @@ -1,5 +1,5 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/modules/inout/templates/inout/pending.html b/app/modules/inout/templates/inout/pending.html index 8fc48ab..cbcaa0f 100644 --- a/app/modules/inout/templates/inout/pending.html +++ b/app/modules/inout/templates/inout/pending.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/static/inout.css b/app/static/inout.css index 7e30fac..d17c980 100644 --- a/app/static/inout.css +++ b/app/static/inout.css @@ -15,6 +15,7 @@ /* 거르기 줄 */ .io-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .io-filter .erp-select { width: auto; } +.io-filter-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-left: auto; } .io-search { width: 260px; } .io .pj-date-btn { margin-top: 0; height: 34px; box-sizing: border-box; } .io .pj-date-btn:disabled { opacity: .5; cursor: not-allowed; } diff --git a/tests/js/inout_datepop.browser.test.js b/tests/js/inout_datepop.browser.test.js index 6ecdfc6..d44f081 100644 --- a/tests/js/inout_datepop.browser.test.js +++ b/tests/js/inout_datepop.browser.test.js @@ -64,6 +64,19 @@ function check(name, cond, extra) { const search = await p.locator('input[name="q"]').boundingBox(); check("필터 줄 높이가 맞음", Math.abs((box.y + box.height / 2) - (search.y + search.height / 2)) < 4, { box: box, search: search }); await p.screenshot({ path: path.join(__dirname, ".out", "inout_list.png") }); + // 목록 거르기(2026-11-05) — 발주일~찾기 묶음의 오른쪽 끝 = 표 상자 오른쪽 끝(표는 넓으면 상자 안에서 가로 스크롤), 줄이 바뀌어도 + const rightEdge = async function () { + const btn = await p.getByRole("button", { name: "찾기" }).boundingBox(); + const wrap = await p.locator(".erp-table-wrap").boundingBox(); + return Math.abs(btn.x + btn.width - (wrap.x + wrap.width)); + }; + check("좁은 화면: 찾기가 오른쪽 끝", (await rightEdge()) < 2, await rightEdge()); + await p.setViewportSize({ width: 2000, height: 900 }); + await p.waitForTimeout(100); + await p.screenshot({ path: path.join(__dirname, ".out", "inout_list_wide.png") }); + check("넓은 화면: 찾기가 오른쪽 끝", (await rightEdge()) < 2, await rightEdge()); + await p.setViewportSize({ width: 1400, height: 900 }); + await p.waitForTimeout(100); // 목록 머리글(2026-11-05) — 숫자 열까지 가운데, 굵게, 12px × 1.11, 회색 배경 const headStyles = await p.locator(".io-table thead th").evaluateAll(function (els) {