MH: Mobile Silvester

This commit is contained in:
2024-12-09 04:57:48 +01:00
parent 328d0ae243
commit 616cd782d6
2 changed files with 24 additions and 0 deletions

View File

@@ -87,6 +87,7 @@
<DependentUpon>Sammelrechnung.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomSaveInterceptor.cs" />
<Compile Include="Service\CustomVacationService.cs" />
<Compile Include="TaetigkeitsnachweisAbSept2023.cs">
<SubType>Component</SubType>
</Compile>

View File

@@ -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<FeiertagDC> 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;
}
}
}