From 06d4753d61a803e2f8447bc3167dced3434107d4 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 22 Sep 2025 08:54:41 +0000
Subject: (최겸) 구매 협력업체 관리 피드백 반영(PQ, 실사, QM 담당자 등)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/vendors/table/request-pq-dialog.tsx | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

(limited to 'lib/vendors/table/request-pq-dialog.tsx')

diff --git a/lib/vendors/table/request-pq-dialog.tsx b/lib/vendors/table/request-pq-dialog.tsx
index aeb0c717..206846df 100644
--- a/lib/vendors/table/request-pq-dialog.tsx
+++ b/lib/vendors/table/request-pq-dialog.tsx
@@ -154,10 +154,14 @@ export function RequestPQDialog({ vendors, showTrigger = true, onSuccess, ...pro
 
           if (isAllForeign) {
             // 외자: 준법서약 (영문), GTC 선택 (GTC는 1개만 선택하도록)
-            const foreignTemplates = templates.filter(template =>
-              template.templateName?.includes('준법서약') && template.templateName?.includes('영문') ||
-              template.templateName?.includes('gtc')
-            )
+            // 비밀유지 계약서, 기술자료 요구서 제외
+            const foreignTemplates = templates.filter(template => {
+              const name = template.templateName?.toLowerCase() || ''
+              return (
+                (template.templateName?.includes('준법서약') && template.templateName?.includes('영문')) ||
+                template.templateName?.includes('gtc')
+              ) && !name.includes('비밀유지') && !name.includes('기술자료')
+            })
             // GTC 템플릿 중 최신 리비전의 것만 선택
             const gtcTemplates = foreignTemplates.filter(t => t.templateName?.includes('gtc'))
             const nonGtcTemplates = foreignTemplates.filter(t => !t.templateName?.includes('gtc'))
@@ -173,9 +177,13 @@ export function RequestPQDialog({ vendors, showTrigger = true, onSuccess, ...pro
             }
           } else if (isAllDomestic) {
             // 내자: 준법서약 (영문), GTC 제외한 모든 템플릿 선택
+            // 비밀유지 계약서, 기술자료 요구서 제외
             const domesticTemplates = templates.filter(template => {
               const name = template.templateName?.toLowerCase() || ''
-              return !(name.includes('준법서약') && name.includes('영문')) && !name.includes('gtc')
+              return !(name.includes('준법서약') && name.includes('영문')) && 
+                     !name.includes('gtc') && 
+                     !name.includes('비밀유지') && 
+                     !name.includes('기술자료')
             })
             setSelectedTemplateIds(domesticTemplates.map(t => t.id))
           }
-- 
cgit v1.2.3

