diff --git a/PARR.BLL/Services/Implementations/CalendarService.cs b/PARR.BLL/Services/Implementations/CalendarService.cs index 143e0174..93d972fb 100644 --- a/PARR.BLL/Services/Implementations/CalendarService.cs +++ b/PARR.BLL/Services/Implementations/CalendarService.cs @@ -68,7 +68,7 @@ namespace PARR.BLL.Services.Implementations //Убираем праздники if (weekends.Any()) - workDays = workDays.Where(t => weekends.Any(x => x != t)).ToList(); + workDays = workDays.Where(t => !weekends.Any(x => x == t)).ToList(); //Убираем числа старше 28, чтобы сравнять продолжительность с февралем workDays.RemoveAll(t => t.Day > 28); diff --git a/PARR.TemplateDistributor/TemplateDistributor.cs b/PARR.TemplateDistributor/TemplateDistributor.cs index 91ac0ed1..86f25f74 100644 --- a/PARR.TemplateDistributor/TemplateDistributor.cs +++ b/PARR.TemplateDistributor/TemplateDistributor.cs @@ -283,7 +283,6 @@ namespace PARR.TemplateDistributor /// public async Task> GetWorkDaysAsync(ApplicationsInWork appInWork) { - var period = appInWork.EsppSchValues.FirstOrDefault()?.EsppSchTypeValue?.DistributionPeriod; var periodType = ParseDistributionPeriodType(period!.Type); var startPeriod = await esppScheduleTransformService.GetStartPeriodForDateAsync(appInWork.Id, appInWork.ReferenceDate, appInWork.ReferenceDate, periodType, period.Duration);