feat: 거래처관리 등록 버튼 추가 및 dead code 정리

- 거래처관리 리스트 페이지에 createButton(거래처 등록) 추가
- 미사용 index.ts 배럴 파일 삭제 (index.tsx가 우선 resolve되어 dead code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-01-29 14:45:41 +09:00
parent dbe5f3c004
commit 58fb9fce44
2 changed files with 7 additions and 55 deletions

View File

@@ -1,54 +0,0 @@
/**
* 거래처 관리 컴포넌트 Export
*/
// 클라이언트 컴포넌트
export { VendorManagementClient } from './VendorManagementClient';
export { VendorManagementClient as VendorManagement } from './VendorManagementClient';
// 상세/수정 컴포넌트
export { VendorDetail } from './VendorDetail';
// 타입
export type {
Vendor,
VendorCategory,
CreditRating,
TransactionGrade,
BadDebtStatus,
SortOption,
VendorMemo,
ClientApiData,
ApiResponse,
PaginatedResponse,
} from './types';
// 상수
export {
VENDOR_CATEGORY_LABELS,
VENDOR_CATEGORY_OPTIONS,
VENDOR_CATEGORY_COLORS,
CREDIT_RATING_OPTIONS,
CREDIT_RATING_COLORS,
TRANSACTION_GRADE_LABELS,
TRANSACTION_GRADE_OPTIONS,
TRANSACTION_GRADE_COLORS,
BAD_DEBT_STATUS_LABELS,
BAD_DEBT_STATUS_OPTIONS,
BAD_DEBT_STATUS_COLORS,
SORT_OPTIONS,
BANK_OPTIONS,
PAYMENT_DAY_OPTIONS,
CLIENT_TYPE_TO_CATEGORY,
CATEGORY_TO_CLIENT_TYPE,
} from './types';
// Server Actions
export {
getClients,
getClientById,
createClient,
updateClient,
deleteClient,
toggleClientActive,
} from './actions';

View File

@@ -109,6 +109,12 @@ export function VendorManagement({ initialData, initialTotal }: VendorManagement
icon: Building2,
basePath: '/accounting/vendors',
// 등록 버튼
createButton: {
label: '거래처 등록',
onClick: () => router.push('/ko/accounting/vendors?mode=new'),
},
// ID 추출
idField: 'id',
@@ -428,7 +434,7 @@ export function VendorManagement({ initialData, initialTotal }: VendorManagement
/>
),
}),
[initialData, stats, handleRowClick, handleEdit]
[initialData, stats, handleRowClick, handleEdit, router]
);
return <UniversalListPage config={config} initialData={initialData} />;