From 0be200e77aa2bd3efd06d510ab2eef929a93e6d9 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 8 Jul 2025 12:48:13 +0530 Subject: [PATCH] In Project Report Email only sending data of job role assigned to that project --- Marco.Pms.Services/Controllers/ReportController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marco.Pms.Services/Controllers/ReportController.cs b/Marco.Pms.Services/Controllers/ReportController.cs index 893c16b..8f8a790 100644 --- a/Marco.Pms.Services/Controllers/ReportController.cs +++ b/Marco.Pms.Services/Controllers/ReportController.cs @@ -232,9 +232,9 @@ namespace Marco.Pms.Services.Controllers double totalPlannedTask = todayAssignedTasks.Sum(t => t.PlannedTask); double totalCompletedTask = todayAssignedTasks.Sum(t => t.CompletedTask); - + var jobRoleIds = projectAllocations.Select(pa => pa.JobRoleId).ToList(); var jobRoles = await _context.JobRoles - .Where(j => j.TenantId == project.TenantId) + .Where(j => j.TenantId == project.TenantId && jobRoleIds.Contains(j.Id)) .ToListAsync(); // Team on site