diff --git a/ReportImp/AachenerLaienhelfer/AachenerLaienhelfer.csproj b/ReportImp/AachenerLaienhelfer/AachenerLaienhelfer.csproj index e52fea6df..e0f0f9a96 100644 --- a/ReportImp/AachenerLaienhelfer/AachenerLaienhelfer.csproj +++ b/ReportImp/AachenerLaienhelfer/AachenerLaienhelfer.csproj @@ -55,7 +55,6 @@ - Component diff --git a/ReportImp/AachenerLaienhelfer/CustomMitarbeiterstundenkontoBerechnung.cs b/ReportImp/AachenerLaienhelfer/CustomMitarbeiterstundenkontoBerechnung.cs deleted file mode 100644 index b235f97ab..000000000 --- a/ReportImp/AachenerLaienhelfer/CustomMitarbeiterstundenkontoBerechnung.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using BeWo.Report.ReportObjects; - -namespace AachenerLaienhelfer -{ - 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); - } - } -} diff --git a/Service/Plugins/CustomerService.cs b/Service/Plugins/CustomerService.cs index a95e99d4c..e0a7aff96 100644 --- a/Service/Plugins/CustomerService.cs +++ b/Service/Plugins/CustomerService.cs @@ -210,7 +210,10 @@ namespace BeWo.Service.Plugins foreach (ValueListEntry2Object vle2o in e2c.ValueList) { ValueListEntry vle = vle2o.Entry; - if (vle.SystemEntryID != null && vle.SystemEntryID.Value == SystemEntryID.EmployeeRoleMainAttendant && e2c.EmployeeOid != currentEmployeeOid.Value) + if (vle.SystemEntryID != null && vle.SystemEntryID.Value == SystemEntryID.EmployeeRoleMainAttendant + && e2c.EmployeeOid != currentEmployeeOid.Value + && (!e2c.EndDate.HasValue || e2c.EndDate.Value >= DateTime.Now.Date) + && (!e2c.StartDate.HasValue || e2c.StartDate <= DateTime.Now.Date)) { string empName = e2c.Employee.Person.FirstName + " " + e2c.Employee.Person.LastName; if (String.IsNullOrEmpty(dc.MainAttendant))