Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-01-29 14:46:01 +09:00
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} />;