From 03c40c2171f83eec82ac4211a6c50e4ca0605e2e Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 1 Apr 2026 12:19:17 +0200 Subject: [PATCH 1/5] MH: Storno eingerichtet SupportOID=159073 --- .../SBBMainzReports/SBBMainzReports.csproj | 1 + .../Service/CustomAccountingService.cs | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 ReportImp/SBBMainzReports/Service/CustomAccountingService.cs diff --git a/ReportImp/SBBMainzReports/SBBMainzReports.csproj b/ReportImp/SBBMainzReports/SBBMainzReports.csproj index 881b5ce56..d048cd982 100644 --- a/ReportImp/SBBMainzReports/SBBMainzReports.csproj +++ b/ReportImp/SBBMainzReports/SBBMainzReports.csproj @@ -110,6 +110,7 @@ QuittierungsbelegJaMainz.cs + Component diff --git a/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs b/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs new file mode 100644 index 000000000..605aec68e --- /dev/null +++ b/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows; +using SBBMainzReports.Invoicing; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.DataContracts; + + + +namespace SBBMainzReports.Service +{ + public class CustomAccountingService : AccountingService + { + // Erstellt von Claude (KI-Assistent) am 01.04.2026. + // ErstelleStornoRechnung: Überschreibt die Basismethode zur Erstellung einer Stornorechnung. + // Die Methode ruft zunächst die Basisimplementierung auf, generiert anschließend eine neue + // Rechnungsnummer (via InvoiceNumberGenerator) und ergänzt diese um den Zusatz " Storno". + // Ebenso wird der InvoiceTypeText um " Storno" erweitert (bzw. auf "Storno" gesetzt, falls leer). + // Die fertige Stornorechnung wird in der Datenbank gespeichert und der Rechnungszähler + // um 1 erhöht. Am Ende wird die erstellte Stornorechnung zurückgegeben. + public override ServiceInvoice ErstelleStornoRechnung(InvoiceBaseDC ibdc) + { + var i = base.ErstelleStornoRechnung(ibdc); + //if (!String.IsNullOrEmpty(i.InvoiceBase.InvoiceNumber)) + //{ + // //i.InvoiceBase.InvoiceNumber = ibdc.InvoiceNumber + " Storno"; + // i.InvoiceBase.InvoiceNumber = i.InvoiceBase.InvoiceNumber + " Storno"; + //} + int invoiceCounter = 0; + var inc = PluginLoader.FindClass(); + i.InvoiceBase.InvoiceNumber = inc.GetNextInvoiceNumber(invoiceCounter, i.InvoiceBase) + " Storno"; + + if (String.IsNullOrEmpty(i.InvoiceBase.InvoiceTypeText)) + { + i.InvoiceBase.InvoiceTypeText = "Storno"; + } + else + { + i.InvoiceBase.InvoiceTypeText += " Storno"; + } + + DAOFactory.GenericDAO.Insert(i); + + inc.IncreaseInvoiceNumber(1, new List()); + + + return i; + } + } +} From 85b40ac4f20e5ab215f6bbe61dd010d6a7f9b4d7 Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 1 Apr 2026 12:28:32 +0200 Subject: [PATCH 2/5] MH: SBBMainzReports/Service/CustomAccountingService.cs Using entfernt --- ReportImp/SBBMainzReports/Service/CustomAccountingService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs b/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs index 605aec68e..6caabc0d0 100644 --- a/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs +++ b/ReportImp/SBBMainzReports/Service/CustomAccountingService.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Windows; -using SBBMainzReports.Invoicing; using BeWo.Data.Access; using BeWo.Data.Entities; using BeWo.Service.DCEntityMapper; From 9a7d2d8625e075a17270100640804ccf79a7cd14 Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 1 Apr 2026 12:32:53 +0200 Subject: [PATCH 3/5] MH: SchmitziDB um Storno erweitert --- ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj b/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj index eb0e6d4f7..28bbe6ecc 100644 --- a/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj +++ b/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj @@ -65,6 +65,7 @@ LeistungsnachweisSoziotherapie.cs + Component From 8fcbf3a6fdd8db1fc210818351c5848f3ff052ad Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 1 Apr 2026 12:41:07 +0200 Subject: [PATCH 4/5] MH: Wenn Debug: KI Ausgeblendet wegen Fehlermeldung --- BeWo/BeWoApp.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index dcdcf5497..d21bb8219 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -658,8 +658,8 @@ namespace BeWo AppSettings.AllowStorno = true; AppSettings.AllowXRechnung = true; - //AppSettings.ShowAI = false; - //AppSettings.ShowAIVoice = false; + AppSettings.ShowAI = false; + AppSettings.ShowAIVoice = false; AppSettings.ShowWorktime = true; AppSettings.ShowPersehImport = true; From 195a57b68a09880ba619f9477e2a0eaea4583737 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 1 Apr 2026 13:03:08 +0200 Subject: [PATCH 5/5] =?UTF-8?q?Neue=20Version=20ver=C3=B6ffentlicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWo.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 1b89b0e91..4f8390765 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -43,12 +43,12 @@ de-DE BeWoPlaner ownSoft GmbH - 2.0.1.292 + 2.0.1.293 true publish.htm false true - 293 + 294 2.0.1.%2a false true