fix: [현황판] 결재 카드 조회에 approvalOnly 스코프 추가

- ApprovalStep 쿼리에 approvalOnly() 스코프 적용
- 결재 유형만 필터링되도록 보정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-03-09 19:00:40 +09:00
parent ca259ccb18
commit ee9f4d0b8f

View File

@@ -252,7 +252,8 @@ private function getApprovalStatus(int $tenantId, int $userId): array
->where('status', 'pending');
})
->where('approver_id', $userId)
->where('status', 'pending');
->where('status', 'pending')
->approvalOnly();
$count = (clone $query)->count();