diff --git a/ReportImp/MobileEV/MobileEV.csproj b/ReportImp/MobileEV/MobileEV.csproj index 426b36c1c..3b68add0d 100644 --- a/ReportImp/MobileEV/MobileEV.csproj +++ b/ReportImp/MobileEV/MobileEV.csproj @@ -87,6 +87,7 @@ Sammelrechnung.cs + Component diff --git a/ReportImp/MobileEV/Service/CustomVacationService.cs b/ReportImp/MobileEV/Service/CustomVacationService.cs new file mode 100644 index 000000000..b52ad1495 --- /dev/null +++ b/ReportImp/MobileEV/Service/CustomVacationService.cs @@ -0,0 +1,23 @@ +using BeWo.Service.Plugins; +using BS.Shared.DataContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MobileEV.Service +{ + public class CustomVacationService : VacationService + { + public override List GetFeiertage(int year, string bundesland) + { + var list = base.GetFeiertage(year, bundesland); + + if (year >= 2024) + list.Add(new FeiertagDC() { Datum = new DateTime(year, 12, 31), Name = "Silvester" }); + + return list; + } + } +}