34 lines
770 B
C#
34 lines
770 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
using BS.Shared.Extensions;
|
|
|
|
|
|
namespace GenderBeWoReports
|
|
{
|
|
public class CustomMitarbeiterstundenkontoBerechnung : MitarbeiterstundenkontoBerechnung
|
|
{
|
|
public override decimal GetFeiertagsFaktor(DateTime start)
|
|
{
|
|
if (start.Month == 12 && (start.Day == 24 || start.Day == 31))
|
|
{
|
|
return 0.5m;
|
|
}
|
|
|
|
return base.GetFeiertagsFaktor(start);
|
|
}
|
|
|
|
public override List<DateTime> GetFeiertage(int year)
|
|
{
|
|
var list = base.GetFeiertage(year);
|
|
list.Add(new DateTime(year, 12, 31));
|
|
|
|
return list;
|
|
}
|
|
|
|
}
|
|
}
|