fix(bll): CalendarService исправлен рассчет выходных дней

This commit is contained in:
Mikhail Trubnikov
2024-09-13 12:17:09 +10:00
parent add572f438
commit bf3dca6782
2 changed files with 1 additions and 2 deletions

View File

@@ -283,7 +283,6 @@ namespace PARR.TemplateDistributor
/// <returns></returns>
public async Task<List<DateOnly>> 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);