From 6624adf48ea550dc47ffa27b2f9bf3e019d92f7b Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 7 Nov 2025 06:55:02 +0000 Subject: (최겸) 구매 정규업체등록 캐시 삭제, rfq 발송 시 주 수신자 이메일 default 해제 등 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vendor-regular-registrations/repository.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/vendor-regular-registrations/repository.ts') diff --git a/lib/vendor-regular-registrations/repository.ts b/lib/vendor-regular-registrations/repository.ts index e69e78bf..f2a33cda 100644 --- a/lib/vendor-regular-registrations/repository.ts +++ b/lib/vendor-regular-registrations/repository.ts @@ -162,7 +162,8 @@ export async function getVendorRegularRegistrations( // 모든 조건 충족 여부 확인 const allDocumentsSubmitted = Object.values(documentSubmissionsStatus).every(status => status === true); - const allContractsCompleted = vendorContracts.length > 0 && vendorContracts.every(c => c.status === "COMPLETED"); + // 진행현황과 dialog에서 VENDOR_SIGNED도 완료로 간주하므로, 조건충족 체크도 동일하게 처리 + const allContractsCompleted = vendorContracts.length > 0 && vendorContracts.every(c => c.status === "COMPLETED" || c.status === "VENDOR_SIGNED"); const safetyQualificationCompleted = !!registration.safetyQualificationContent; // 모든 조건이 충족되면 status를 "approval_ready"(조건충족)로 자동 변경 -- cgit v1.2.3