diff --git a/ReportImp/HausDuelken/Invoicing/CustomInvoiceFactory.cs b/ReportImp/HausDuelken/Invoicing/CustomInvoiceFactory.cs index 0eb6aaef3..ad5062a5c 100644 --- a/ReportImp/HausDuelken/Invoicing/CustomInvoiceFactory.cs +++ b/ReportImp/HausDuelken/Invoicing/CustomInvoiceFactory.cs @@ -19,14 +19,18 @@ namespace HausDuelken.Invoicing } } - foreach (var list in supportConcepts2ServiceRecords.Values) + // in der Finanzauswertung funktioniert die getrennte Rechnungsstellung nicht, da sonst nur ASS als Betrag ausgewiesen wurde + if (specificId != null && specificId != "Finanzauswertung") { - foreach (var sr in list) + foreach (var list in supportConcepts2ServiceRecords.Values) { - var sd = sr.ServiceDescription.Category; - var ic = GetInvoiceCreatorForCategory(sd); - if (ic != null) - return ic; + foreach (var sr in list) + { + var sd = sr.ServiceDescription.Category; + var ic = GetInvoiceCreatorForCategory(sd); + if (ic != null) + return ic; + } } } return new InvoiceCreation();