diff --git a/CLAUDE.md b/CLAUDE.md
index e1eda17..02b0e47 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -66,8 +66,8 @@
- `asset/media.py prepare_photo`(이미지 확인·메타데이터 제거): 자산 + 라이브 커머스.
- `app/mail.py`: 프로젝트 알림 메일.
- ERP 모든 화면 스크립트: `erp-notice.js`(공지) · `erp-overdue.js`(프로젝트 마감 알림).
-- 아사나식 날짜 팝업: 프로젝트(`project.js` 안) + 공용 복사본 `erp-datepop.js/css`(휴가 신청) — 바꾸면 둘 다.
-- 국경일·대체공휴일 표 `project/store.py KR_HOLIDAYS`: 프로젝트 캘린더·날짜 팝업 + 휴가(달력·일수 계산 `vacation/db.holiday_map`).
+- 아사나식 날짜 팝업: 프로젝트(`project.js` 안) + 공용 복사본 `erp-datepop.js/css`(휴가 신청·입출고 날짜 칸) — 바꾸면 둘 다.
+- 국경일·대체공휴일 표 `project/store.py KR_HOLIDAYS`: 프로젝트 캘린더·날짜 팝업 + 휴가(달력·일수 계산 `vacation/db.holiday_map`) + 입출고(오른쪽 달력·날짜 칸).
---
diff --git a/app/modules/inout/CLAUDE.md b/app/modules/inout/CLAUDE.md
index f59473f..03f9c85 100644
--- a/app/modules/inout/CLAUDE.md
+++ b/app/modules/inout/CLAUDE.md
@@ -119,3 +119,5 @@
- 시각은 DB 시간대와 무관하게 KST 로 읽음(`db._KstTimestamptzLoader`).
- 날짜 서식은 모두 `yyyy.mm.dd(요일)`(`ymd`·`ymdhm` 매크로, `store.fmt_date`).
+- **날짜 칸 = ERP 공용 달력**(2026-11-05, `erp-datepop`, `_datepop.html` + `inout.js` 머리) — 발주 목록 기간·발주일·입고 예정일·입고일. `input[type=date]` 는 숨긴 값 저장소(폼 전송 그대로), 국경일·대체공휴일 빨강·이름 + 마우스를 올리면 이름(`title`, 표 = `project.store.KR_HOLIDAYS`, `router._date_holidays`).
+ 필수 칸은 [지우기] 없음(숨긴 required 칸이 비면 브라우저가 안내 없이 저장을 막는다), 잠긴 입고일은 버튼도 disabled. 테스트 `tests/js/inout_datepop.browser.test.js`(`render_inout.py`).
diff --git a/app/modules/inout/router.py b/app/modules/inout/router.py
index b05c75e..99c02cc 100644
--- a/app/modules/inout/router.py
+++ b/app/modules/inout/router.py
@@ -106,6 +106,16 @@ def _require(st: Any, user: dict[str, Any], what: str) -> dict[str, bool]:
return p
+def _date_holidays() -> dict[str, str]:
+ """날짜 칸 달력(erp-datepop)의 국경일·대체공휴일 — 프로젝트 달력과 같은 표."""
+ try:
+ from app.modules.project.store import KR_HOLIDAYS # noqa: WPS433
+
+ return dict(KR_HOLIDAYS)
+ except Exception: # noqa: BLE001 — 표를 못 읽어도 날짜 입력은 된다
+ return {}
+
+
def _render(request: Request, name: str, user: dict[str, Any], ctx: dict[str, Any], status_code: int = 200) -> HTMLResponse:
from app.main import build_erp_nav, render_template # noqa: WPS433
@@ -114,7 +124,7 @@ def _render(request: Request, name: str, user: dict[str, Any], ctx: dict[str, An
return render_template(request, name, {
"user": user, "is_admin": perms["admin"], "perms": perms,
"nav_items": build_erp_nav(user, active="inout"),
- "msg": request.query_params.get("msg", ""), "today": today_kst(),
+ "msg": request.query_params.get("msg", ""), "today": today_kst(), "date_holidays": _date_holidays(),
"open_options": request.query_params.get("options") == "1" and perms["admin"], # 톱니 팝업 바로 열기
**ctx,
}, status_code=status_code)
diff --git a/app/modules/inout/templates/inout/_datepop.html b/app/modules/inout/templates/inout/_datepop.html
new file mode 100644
index 0000000..de86fd2
--- /dev/null
+++ b/app/modules/inout/templates/inout/_datepop.html
@@ -0,0 +1,5 @@
+{# 날짜 칸 = ERP 공용 달력(erp-datepop) — inout.js 가 input[type=date] 를 날짜 버튼으로 바꾼다. inout.js 보다 먼저 include. #}
+
+
+
+
diff --git a/app/modules/inout/templates/inout/index.html b/app/modules/inout/templates/inout/index.html
index 93bf3d3..589939d 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,7 +21,7 @@
{% for f in factories %}{% endfor %}
-
+
~
@@ -71,4 +71,4 @@
{% include "inout/_calendar.html" %}