feat(WEB): 회계/설정/카드 관리 페이지 대규모 기능 추가 및 리팩토링

- 일반전표입력, 상품권관리, 세금계산서 발행/조회 신규 페이지 추가
- 바로빌 연동 설정 페이지 추가
- 카드관리/계좌관리 리스트 UniversalListPage 공통 구조로 전환
- 카드거래조회/은행거래조회 리팩토링 (모달 분리, 액션 확장)
- 계좌 상세 폼(AccountDetailForm) 신규 구현
- 카드 상세(CardDetail) 신규 구현 + CardNumberInput 적용
- DateRangeSelector, StatCards, IntegratedListTemplateV2 공통 컴포넌트 개선
- 레거시 파일 정리 (CardManagementUnified, cardConfig, _legacy 등)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-02-15 23:18:45 +09:00
parent 7ce4efa146
commit 7f39f3066f
81 changed files with 12848 additions and 2749 deletions

View File

@@ -188,6 +188,20 @@ export const remove = service.remove;
- 제외 5개: AccountManagement(`meta` 필드명), orders(`data.items` 중첩), VacationManagement, EmployeeManagement, construction/order-management (별도 구조)
- 순 감소: ~220줄 (14파일 × ~20줄 제거, ~28줄 추가)
- 제거된 보일러플레이트: `DEFAULT_PAGINATION`, `FrontendPagination`/`PaginationMeta` 로컬 인터페이스, `PaginatedApiResponse` import, 수동 transform+pagination 조립
- **화면 검수 완료** (4개 페이지): Bills, StockStatus, Quotes, Shipments — 전체 PASS
- **버그 발견/수정**: `quotes/actions.ts`에서 `export type { PaginationMeta }` re-export가 Turbopack 런타임 에러 유발 (`tsc`로 미감지) → re-export 제거, 컴포넌트에서 `@/lib/api/types` 직접 import로 변경
### `'use server'` 파일 타입 export 제한 (2026-02-12)
**발견 배경**: `executePaginatedAction` 마이그레이션 화면 검수 중 견적관리 페이지 빌드 에러
**제한 사항**:
- `'use server'` 파일에서는 **async 함수만 export 가능** (Next.js Turbopack 제한)
- `export type { X } from '...'` (re-export) → **런타임 에러 발생**
- `export interface X { ... }` / `export type X = ...` (인라인 정의) → **문제 없음** (컴파일 시 제거)
- `tsc --noEmit`으로는 감지 불가 — Next.js 전용 규칙이므로 실제 페이지 접속(Turbopack)에서만 발생
**현재 상태**: 전체 81개 `'use server'` 파일 점검 완료, re-export 패턴 0건 (수정된 1건 포함)
**buildApiUrl 마이그레이션 전략**:
- Wave A: 1건짜리 단순 파일 20개

View File

@@ -191,6 +191,7 @@ http://localhost:3000/ko/outbound/vehicle-dispatches # 🆕 배차차량관
| **게시판관리** | `/ko/board/board-management` | 🆕 NEW |
| **팝업관리** | `/ko/settings/popup-management` | 🆕 NEW |
| **알림설정** | `/ko/settings/notification-settings` | 🆕 NEW |
| **바로빌연동관리** | `/ko/settings/barobill-integration` | 🆕 NEW |
```
http://localhost:3000/ko/settings/leave-policy
@@ -204,6 +205,7 @@ http://localhost:3000/ko/settings/notification-settings # 🆕 알림설정
http://localhost:3000/ko/hr/card-management # 🆕 카드관리
http://localhost:3000/ko/board/board-management # 🆕 게시판관리
http://localhost:3000/ko/settings/popup-management # 🆕 팝업관리
http://localhost:3000/ko/settings/barobill-integration # 🆕 바로빌연동관리
```
---
@@ -241,6 +243,10 @@ http://localhost:3000/ko/approval/reference # ✅ 참조함
| **입출금 계좌조회** | `/ko/accounting/bank-transactions` | ✅ |
| **카드 내역 조회** | `/ko/accounting/card-transactions` | 🆕 NEW |
| **악성채권 추심관리** | `/ko/accounting/bad-debt-collection` | 🆕 NEW |
| **세금계산서 발행** | `/ko/accounting/tax-invoice-issuance` | 🆕 NEW |
| **세금계산서 관리** | `/ko/accounting/tax-invoices` | 🆕 NEW |
| **상품권관리** | `/ko/accounting/gift-certificates` | 🆕 NEW |
| **일반전표입력** | `/ko/accounting/general-journal-entry` | 🆕 NEW |
```
http://localhost:3000/ko/accounting/vendors # 거래처관리
@@ -256,6 +262,10 @@ http://localhost:3000/ko/accounting/receivables-status # 미수금 현황
http://localhost:3000/ko/accounting/bank-transactions # 입출금 계좌조회
http://localhost:3000/ko/accounting/card-transactions # 카드 내역 조회
http://localhost:3000/ko/accounting/bad-debt-collection # 악성채권 추심관리
http://localhost:3000/ko/accounting/tax-invoice-issuance # 🆕 세금계산서 발행
http://localhost:3000/ko/accounting/tax-invoices # 🆕 세금계산서 관리
http://localhost:3000/ko/accounting/gift-certificates # 🆕 상품권관리
http://localhost:3000/ko/accounting/general-journal-entry # 🆕 일반전표입력
```
---
@@ -409,6 +419,7 @@ http://localhost:3000/ko/settings/notification-settings # 🆕 알림설정
http://localhost:3000/ko/hr/card-management # 🆕 카드관리
http://localhost:3000/ko/board/board-management # 🆕 게시판관리
http://localhost:3000/ko/settings/popup-management # 🆕 팝업관리
http://localhost:3000/ko/settings/barobill-integration # 🆕 바로빌연동관리
```
### Approval
@@ -433,6 +444,9 @@ http://localhost:3000/ko/accounting/receivables-status # 미수금 현황
http://localhost:3000/ko/accounting/bank-transactions # 입출금 계좌조회
http://localhost:3000/ko/accounting/card-transactions # 🆕 카드 내역 조회
http://localhost:3000/ko/accounting/bad-debt-collection # 악성채권 추심관리
http://localhost:3000/ko/accounting/tax-invoice-issuance # 🆕 세금계산서 발행
http://localhost:3000/ko/accounting/gift-certificates # 🆕 상품권관리
http://localhost:3000/ko/accounting/general-journal-entry # 🆕 일반전표입력
```
### Board
@@ -524,6 +538,7 @@ http://localhost:3000/ko/dev/editable-table # Editable Table 테스트
'/hr/card-management' // 카드관리 (🆕 NEW)
'/board/board-management' // 게시판관리 (🆕 NEW)
'/settings/popup-management' // 팝업관리 (🆕 NEW)
'/settings/barobill-integration' // 바로빌연동관리 (🆕 NEW)
// 계정/회사/구독 (사이드바 루트 레벨 별도 메뉴)
'/settings/account-info' // 계정정보 (🆕 NEW)
@@ -550,6 +565,9 @@ http://localhost:3000/ko/dev/editable-table # Editable Table 테스트
'/accounting/bank-transactions' // 입출금 계좌조회
'/accounting/card-transactions' // 카드 내역 조회
'/accounting/bad-debt-collection' // 악성채권 추심관리
'/accounting/tax-invoice-issuance' // 세금계산서 발행 (🆕 NEW)
'/accounting/gift-certificates' // 상품권관리 (🆕 NEW)
'/accounting/general-journal-entry' // 일반전표입력 (🆕 NEW)
// Board (게시판)
'/board' // 게시판 목록
@@ -569,4 +587,4 @@ http://localhost:3000/ko/dev/editable-table # Editable Table 테스트
## 작성일
- 최초 작성: 2025-12-06
- 최종 업데이트: 2026-02-03 (단가배포관리 추가)
- 최종 업데이트: 2026-02-13 (일반전표입력 추가)