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); } } }