From 73f5d103ed10915f8580dbf8412823771420ccbf Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Mon, 28 Aug 2023 11:14:20 +0200 Subject: [PATCH] MH: LH Ahrweiler Storno --- .../LebenshilfeAhrweiler/Invoicing/CustomAccountingService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReportImp/LebenshilfeAhrweiler/Invoicing/CustomAccountingService.cs b/ReportImp/LebenshilfeAhrweiler/Invoicing/CustomAccountingService.cs index 4d731dd62..1148b7e03 100644 --- a/ReportImp/LebenshilfeAhrweiler/Invoicing/CustomAccountingService.cs +++ b/ReportImp/LebenshilfeAhrweiler/Invoicing/CustomAccountingService.cs @@ -4,6 +4,7 @@ using System.Linq; using BeWo.Data.Access; using BeWo.Data.Entities; +using BeWo.Service.Core; using BeWo.Service.DCEntityMapper; using BeWo.Service.Plugins; using BS.Shared; @@ -24,6 +25,7 @@ namespace LebenshilfeAhrweiler.Services DAOFactory.GenericDAO.Insert(newInvoice); + ServiceLogic.SetActivationType(invoices.ToDictionary(i => i.InvoiceBaseOid.Value, i => i.InvoiceBaseVersion.Value), ActivationTypeId.Deleted); } } @@ -35,6 +37,8 @@ namespace LebenshilfeAhrweiler.Services DAOFactory.GenericDAO.Insert(newInvoice); + ServiceLogic.SetActivationType(invoices.ToDictionary(i => i.ServiceInvoiceOid.Value, i => i.ServiceInvoiceVersion.Value), ActivationTypeId.Deleted); + ServiceLogic.SetActivationType(invoices.ToDictionary(i => i.InvoiceBase.InvoiceBaseOid.Value, i => i.InvoiceBase.InvoiceBaseVersion.Value), ActivationTypeId.Deleted); } } }