From 22aed3f8dcfe64dc16aafbd4192addd7aef2de8c Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 24 Mar 2025 11:54:28 +0530 Subject: [PATCH] [UPDT] RECRUITMENT: Update offer acceptance ratio calculation method --- recruitment/views/dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recruitment/views/dashboard.py b/recruitment/views/dashboard.py index 6fbb0b1d8..2401ac7bc 100644 --- a/recruitment/views/dashboard.py +++ b/recruitment/views/dashboard.py @@ -104,8 +104,8 @@ def dashboard(request): if stage_chart_count >= 1: stage_chart_count = 1 - onboarding_count = Candidate.objects.filter(start_onboard=True) - onboarding_count = onboarding_count.count() + accepted = Candidate.objects.filter(offer_letter_status="accepted") + accepted_count = accepted.count() recruitment_manager_mapping = {} @@ -139,7 +139,7 @@ def dashboard(request): hired_ratio = f"{((total_hired_candidates / total_vacancy) * 100):.1f}" total_candidate_ratio = f"{((total_candidates / total_vacancy) * 100):.1f}" if total_hired_candidates != 0: - acceptance_ratio = f"{((onboarding_count / total_hired_candidates) * 100):.1f}" + acceptance_ratio = f"{((accepted_count / total_hired_candidates) * 100):.1f}" skill_zone = SkillZone.objects.filter(is_active=True) return render(