From 50adedf48ee4674ebe00f1ee72d93485183cdc51 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 5 Sep 2025 11:44:32 +0000
Subject: (대표님, 최겸, 임수민) EDP 입력 진행률, 견적목록관리, EDP excel
 import 오류수정, GTC-Contract
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../gtc-vendor/gtc-clauses-table-toolbar-actions.tsx             | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'lib/basic-contract/gtc-vendor/gtc-clauses-table-toolbar-actions.tsx')

diff --git a/lib/basic-contract/gtc-vendor/gtc-clauses-table-toolbar-actions.tsx b/lib/basic-contract/gtc-vendor/gtc-clauses-table-toolbar-actions.tsx
index 3a0fbdb6..f0cebe5f 100644
--- a/lib/basic-contract/gtc-vendor/gtc-clauses-table-toolbar-actions.tsx
+++ b/lib/basic-contract/gtc-vendor/gtc-clauses-table-toolbar-actions.tsx
@@ -37,12 +37,14 @@ import { exportFullDataToExcel, type ExcelColumnDef } from "@/lib/export"
 import { getAllGtcClausesForExport, importGtcClausesFromExcel } from "@/lib/gtc-contract/service"
 import { ImportExcelDialog } from "./import-excel-dialog"
 import { toast } from "@/hooks/use-toast"
+import { Vendor } from "@/db/schema"
 
 interface GtcClausesTableToolbarActionsProps {
   table: Table<GtcClauseTreeView>
   documentId: number
   document: any
   currentUserId?: number // 현재 사용자 ID 추가
+  vendor:Vendor
 }
 
 // GTC 조항을 위한 Excel 컬럼 정의 (실용적으로 간소화)
@@ -101,7 +103,7 @@ export function GtcClausesTableToolbarActions({
   table,
   documentId,
   document,
-  currentUserId = 1, // 기본값 설정 (실제로는 auth에서 가져와야 함)
+  vendor
 }: GtcClausesTableToolbarActionsProps) {
   const [showCreateDialog, setShowCreateDialog] = React.useState(false)
   const [showReorderDialog, setShowReorderDialog] = React.useState(false)
@@ -188,7 +190,7 @@ export function GtcClausesTableToolbarActions({
   // Excel 데이터 가져오기 처리
   const handleImportExcelData = async (data: Partial<GtcClauseTreeView>[]) => {
     try {
-      const result = await importGtcClausesFromExcel(documentId, data, currentUserId)
+      const result = await importGtcClausesFromExcel(documentId, data)
 
       if (result.success) {
         toast({
@@ -340,7 +342,8 @@ export function GtcClausesTableToolbarActions({
         open={showPreviewDialog}
         onOpenChange={setShowPreviewDialog}
         clauses={previewClauses}
-        document={document}
+        contractDocument={document}
+        vendor={vendor}
         onExport={() => {
           console.log("Export from preview dialog")
         }}
-- 
cgit v1.2.3

