Chnaged the check for persentages

This commit is contained in:
ashutosh.nehete 2025-10-06 14:42:29 +05:30
parent db752a4678
commit 2e29dc9946

View File

@ -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;