diff --git a/CompanyManagment.EFCore/Repository/RollCallMandatoryRepository.cs b/CompanyManagment.EFCore/Repository/RollCallMandatoryRepository.cs index 75e98903..873f14a9 100644 --- a/CompanyManagment.EFCore/Repository/RollCallMandatoryRepository.cs +++ b/CompanyManagment.EFCore/Repository/RollCallMandatoryRepository.cs @@ -676,7 +676,7 @@ public class RollCallMandatoryRepository : RepositoryBase, IRoll break; } var rotatingFaResult = ""; - if (countOutOfRange >= validCount) + if (countOutOfRange >= validCount && workshopId != 344) { shiftOver22Hours = "0"; shiftOver22Minuts = "0"; @@ -1722,7 +1722,8 @@ public class RollCallMandatoryRepository : RepositoryBase, IRoll EndDate = endComplex, ShiftSpan = (endComplex - startComplex), ShiftDate = currentDateGr, - }); + ShiftEndWithoutRest = endComplex + }); var endCal = end - start; diff --git a/CompanyManagment.EFCore/Repository/YearlySalaryRepository.cs b/CompanyManagment.EFCore/Repository/YearlySalaryRepository.cs index 5b9d52aa..5d90620f 100644 --- a/CompanyManagment.EFCore/Repository/YearlySalaryRepository.cs +++ b/CompanyManagment.EFCore/Repository/YearlySalaryRepository.cs @@ -2739,6 +2739,9 @@ public class YearlySalaryRepository : RepositoryBase, IYearl else { periodOfAbsence = usedLeaves - canToLeave; + if (workingHoursePerDay >= 7.33) + periodOfAbsence = 0; + #region AbsenceItemsCompute @@ -3314,9 +3317,10 @@ public class YearlySalaryRepository : RepositoryBase, IYearl periodOfAbsence = usedLeaves; - #endregion - contactCanToleaveList.Add(new ContractsCanToLeave() + #endregion + + contactCanToleaveList.Add(new ContractsCanToLeave() { ContractCounter = contractCounter, WorkingPerDayHourses = workingHoursePerDay,