Chnaged the check for persentages
This commit is contained in:
parent
db752a4678
commit
2e29dc9946
@ -263,7 +263,7 @@ namespace Marco.Pms.Services.Helpers
|
|||||||
// Fill report
|
// Fill report
|
||||||
statisticReport.TodaysAttendances = checkedInEmployeeIds.Count;
|
statisticReport.TodaysAttendances = checkedInEmployeeIds.Count;
|
||||||
statisticReport.TotalEmployees = assignedEmployeeIds.Count;
|
statisticReport.TotalEmployees = assignedEmployeeIds.Count;
|
||||||
statisticReport.AttendancePercentage = checkedInEmployeeIds.Count > 0 ? (checkedInEmployeeIds.Count / assignedEmployeeIds.Count) * 100 : 0;
|
statisticReport.AttendancePercentage = assignedEmployeeIds.Count > 0 ? (checkedInEmployeeIds.Count / assignedEmployeeIds.Count) * 100 : 0;
|
||||||
statisticReport.RegularizationPending = regularizationIds.Count;
|
statisticReport.RegularizationPending = regularizationIds.Count;
|
||||||
statisticReport.CheckoutPending = checkoutPendingIds.Count;
|
statisticReport.CheckoutPending = checkoutPendingIds.Count;
|
||||||
statisticReport.TotalPlannedWork = totalPlannedWork;
|
statisticReport.TotalPlannedWork = totalPlannedWork;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user