diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-09 10:32:34 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-09 10:32:34 +0000 |
| commit | c62ec046327fd388ebce04571b55910747e69a3b (patch) | |
| tree | 41ccdc4a8dea99808622f6d5d52014ac59a2d7ab /lib/vendors/table/vendor-all-export.ts | |
| parent | ebcec3f296d1d27943caf8a3aed26efef117cdc5 (diff) | |
(정희성, 최겸, 대표님) formatDate 변경 등
Diffstat (limited to 'lib/vendors/table/vendor-all-export.ts')
| -rw-r--r-- | lib/vendors/table/vendor-all-export.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/vendors/table/vendor-all-export.ts b/lib/vendors/table/vendor-all-export.ts index 31ab2b52..1784ae9b 100644 --- a/lib/vendors/table/vendor-all-export.ts +++ b/lib/vendors/table/vendor-all-export.ts @@ -2,6 +2,7 @@ import ExcelJS from "exceljs" import { VendorWithType } from "@/db/schema/vendors" import { exportVendorDetails } from "../service"; +import { formatDate } from "@/lib/utils"; // 연락처 인터페이스 정의 interface VendorContact { @@ -451,15 +452,6 @@ function applyHeaderStyle(sheet: ExcelJS.Worksheet): void { }); } -// 날짜 포맷 함수 -function formatDate(date: Date | string): string { - if (!date) return ""; - if (typeof date === 'string') { - date = new Date(date); - } - return date.toISOString().split('T')[0]; -} - // 금액 포맷 함수 function formatAmount(amount: number): string { return amount.toLocaleString(); |
