summaryrefslogtreecommitdiff
path: root/lib/vendors/table/vendor-all-export.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendors/table/vendor-all-export.ts')
-rw-r--r--lib/vendors/table/vendor-all-export.ts10
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();