BUGeVReports: Silvester zur Feiertagsliste hinzugefügt

This commit is contained in:
2025-01-06 14:14:03 +01:00
parent 38392e4448
commit 88eab1f45a
2 changed files with 20 additions and 0 deletions

View File

@@ -99,6 +99,7 @@
<Compile Include="ServiceInvoiceReport.Designer.cs">
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomVacationService.cs" />
<Compile Include="SettlementReport.cs">
<SubType>Component</SubType>
</Compile>

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using BeWo.Service.Plugins;
using BS.Shared.DataContracts;
namespace BUGeVReports.Service
{
public class CustomVacationService : VacationService
{
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
{
var feiertage = base.GetFeiertage(year, bundesland);
feiertage.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
return feiertage;
}
}
}