Files
BeWoPlaner/ReportImp/ahaEV/CustomVacationService.cs

27 lines
622 B
C#

using BeWo.Service.Plugins;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ahaEV
{
class CustomVacationService : VacationService
{
public override string Bundesland { get => "Hessen"; }
public override decimal GetFeiertagsFaktor(DateTime start)
{
if (IstFeiertag(start))
{
return 1;
}
else if (start.Month == 12 && start.Day == 24 || start.Month == 12 && start.Day == 31)
return 0.5m;
return 0;
}
}
}