BaseYears changes - Bonuses changes - RollCall CaseHistory buges fixed

This commit is contained in:
SamSys
2024-11-20 19:08:20 +03:30
parent 207864e4d6
commit 2c1ea936ec
13 changed files with 578 additions and 131 deletions

View File

@@ -122,8 +122,8 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
.FirstOrDefault(x => x.EmployeeId == employeeId && x.WorkshopId == workshopId);
//if none was found return empty
if (employeeRollCallStatuses == null)
return new();
if (employeeRollCallStatuses == null || employeeRollCallStatuses.EmployeesStatus == null || !employeeRollCallStatuses.EmployeesStatus.Any())
return null;
//this list will have all the months which employee was active in
var activeMonths = new List<PersianDateTime>();