diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/vendorColumnsConfig.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/config/vendorColumnsConfig.ts b/config/vendorColumnsConfig.ts index 35a4abd3..8595b0b2 100644 --- a/config/vendorColumnsConfig.ts +++ b/config/vendorColumnsConfig.ts @@ -5,9 +5,10 @@ import { VendorWithTypeAndMaterials } from "@/db/schema/vendors"; */ export interface VendorColumnConfig { /** - * "조인 결과" 객체(VendorWithTypeAndMaterials)의 어느 필드를 표시할지 + * "조인 결과" 객체(VendorWithTypeAndMaterials)의 어느 필드를 표시할지 + * 또는 계산된 필드명 (예: vendorClassification) */ - id: keyof VendorWithTypeAndMaterials; + id: keyof VendorWithTypeAndMaterials | "vendorClassification"; /** 화면·엑셀에서 보여줄 컬럼명 */ label: string; @@ -47,6 +48,15 @@ export const vendorColumnsConfig: VendorColumnConfig[] = [ }, { + id: "vendorClassification", + label: "업체분류", + excelHeader: "업체분류", + type: "string", + width: 120, + minWidth: 100, + }, + + { id: "vendorName", label: "업체명", excelHeader: "업체명", |
