diff --git a/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs b/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs index 3546516ff..59304dfb2 100644 --- a/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs +++ b/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs @@ -158,7 +158,7 @@ private async Task BuildContentForResourceOwner(Guid azureUniqueId, string fullD //11.Personnel with more than 100 % workload var listOfPersonnelWithTBEContent = - personnelForDepartment.Select(p => CreatePersonnelWithTBEContent(p)); + personnelForDepartment.Select(p => CreatePersonnelContentWithTotalWorkload(p)); var listOfPersonnelWithTBEContentOnlyMoreThan100PercentWorkload = listOfPersonnelWithTBEContent.Where(p => p.TotalWorkload > 100); @@ -206,7 +206,7 @@ private IEnumerable FilterPersonnelWithoutFutureAllocations( x.PositionInstances.Where(pos => pos.IsActive && pos.AppliesTo <= threeMonthsFuture).Any()); var personnelWithoutFutureAllocations = personnelWithPositionsEndingInThreeMonths.Where(person => person.PositionInstances.All(pos => pos.AppliesTo < threeMonthsFuture)); - return personnelWithoutFutureAllocations.Select(p => CreatePersonnelContent(p)); + return personnelWithoutFutureAllocations.Select(p => CreatePersonnelContentWithPositionInformation(p)); } private async Task> GetPersonnelLeave( @@ -341,7 +341,7 @@ private string CalculateAverageTimeToHandleRequests(IEnumerable ab.Type != ApiAbsenceType.Absence && ab.IsActive).Select(ab => ab.AbsencePercentage).Sum();