Skip to content

Commit 3f3d9d2

Browse files
committed
Fixing broken sum for period.
1 parent b936932 commit 3f3d9d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/TimePlanningWorkingHoursService/TimePlanningWorkingHoursService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,8 +1797,8 @@ public async Task<OperationDataResult<Stream>> GenerateExcelDashboard(
17971797
totalRow.Append(CreateDateCell(model.DateTo));
17981798
totalRow.Append(CreateCell(worker.EmployeeNo ?? string.Empty));
17991799
totalRow.Append(CreateCell(site.Name));
1800-
totalRow.Append(CreateNumericCell(content.Model.Sum(x => x.PlanHours)));
1801-
totalRow.Append(CreateNumericCell(content.Model.Sum(x => x.NettoHours)));
1800+
totalRow.Append(CreateNumericCell(content.Model.Skip(1).ToList().Sum(x => x.PlanHours)));
1801+
totalRow.Append(CreateNumericCell(content.Model.Skip(1).ToList().Sum(x => x.NettoHours)));
18021802
totalRow.Append(CreateNumericCell(content.Model.Last().SumFlexEnd));
18031803
totalSheetData1.Append(totalRow);
18041804
totalRowIndex++;

0 commit comments

Comments
 (0)