From e6adc457715929046b2b0003bc740f464b6ee058 Mon Sep 17 00:00:00 2001 From: Kojo Date: Wed, 22 Jan 2025 14:35:42 +0000 Subject: [PATCH 1/2] Revert "AachenerLaienhelfer: Heiligabend und Silvester als halbe Arbeitstage behandeln" This reverts commit 161bc270308c14fe17927c4e65303cc4eebb614f. --- .../AachenerLaienhelfer.csproj | 1 - .../CustomMitarbeiterstundenkontoBerechnung.cs | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 ReportImp/AachenerLaienhelfer/CustomMitarbeiterstundenkontoBerechnung.cs 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); - } - } -} From d43e05f68221b86d6b5eca3174c411c4e5f4a732 Mon Sep 17 00:00:00 2001 From: Kojo Date: Thu, 23 Jan 2025 13:02:44 +0100 Subject: [PATCH 2/2] CustomerService: In Klientenliste nur aktuelle Hauptbetreuer anzeigen --- Service/Plugins/CustomerService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))