/// <summary> /// Assigns the leave roaster report. /// </summary> /// <param name="reportPresenter">The report presenter.</param> private void AssignLeaveRoasterReport(ReportPresenter reportPresenter) { AssignSelectedTeamDevelopersIds(reportPresenter); reportPresenter.ReportFilter.DateFrom = reportPresenter.ReportFilter.DateFrom.RetrieveCurrentMonthStartDate(); var dateFromYear = reportPresenter.ReportFilter.DateFrom.Year; var currentDate = DateTimeHelper.RetrieveCurrentDate(); reportPresenter.ReportFilter.DateTo = dateFromYear == currentDate.Year ? currentDate.Month == reportPresenter.ReportFilter.DateTo.Month ? currentDate : reportPresenter.ReportFilter.DateTo.RetrieveCurrentMonthEndDate() : reportPresenter.ReportFilter.DateTo.RetrieveCurrentMonthEndDate(); reportPresenter.AssignLeaveRosterReportList(this.reportService.RetrieveLeaveRosterReportInfo(reportPresenter.ReportFilter.DateFrom, reportPresenter.ReportFilter.DateTo, reportPresenter.SelectedTeamMembersIds, SessionData.Instance.UserInfo.Developer.DeveloperID)); }