summaryrefslogtreecommitdiff
path: root/lib/vendor-regular-registrations/repository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-regular-registrations/repository.ts')
-rw-r--r--lib/vendor-regular-registrations/repository.ts3
1 files changed, 2 insertions, 1 deletions
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"(조건충족)로 자동 변경