diff options
Diffstat (limited to 'lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx')
| -rw-r--r-- | lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx index 8d21df24..6a067d68 100644 --- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx +++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx @@ -172,7 +172,7 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] { // 기본계약 현황 계산
const totalContracts = registration.basicContracts?.length || 0
- const completedContracts = registration.basicContracts?.filter(c => c.status === "COMPLETED").length || 0
+ const completedContracts = registration.basicContracts?.filter(c => c.status === "VENDOR_SIGNED").length || 0
const incompleteContracts = totalContracts - completedContracts
// 안전적격성 평가 현황
@@ -184,7 +184,7 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] { // 전체 미완료 항목 계산
const totalIncomplete =
(incompleteDocs > 0 ? 1 : 0) +
- (incompleteContracts > 0 ? 1 : 0) +
+ incompleteContracts +
(!safetyCompleted ? 1 : 0) +
(!additionalInfoCompleted ? 1 : 0)
|
