diff --git a/ReportImp/PraxisPusteblume/SammelrechnungNachKlienten.cs b/ReportImp/PraxisPusteblume/SammelrechnungNachKlienten.cs index c07eef73e..2018d4053 100644 --- a/ReportImp/PraxisPusteblume/SammelrechnungNachKlienten.cs +++ b/ReportImp/PraxisPusteblume/SammelrechnungNachKlienten.cs @@ -5,11 +5,9 @@ using BeWo.Data.Entities; using BeWo.Report; using BeWo.Report.ReportObjects; using BeWo.Service.ServiceImplementations; -using BS.Shared; using BS.Shared.Core; using BS.Shared.DataContracts; using DevExpress.XtraReports.UI; -using PraxisPusteblume.Invoicing; namespace PraxisPusteblume { @@ -98,7 +96,7 @@ namespace PraxisPusteblume { i.UnitDescription = String.Format("zu je {0:c}", i.AmountPerUnit); } - if (i.ServiceDescription.EndsWith("?")) + if (i.ServiceDescription != null && i.ServiceDescription.EndsWith("?")) { i.ServiceDescription = i.ServiceDescription.Replace("?", "€"); } @@ -118,11 +116,7 @@ namespace PraxisPusteblume if (i.Hours.HasValue) hours += i.Hours.Value; - - - } - } } @@ -149,7 +143,7 @@ namespace PraxisPusteblume { foreach (var i in p.ServiceInvoiceItems) { - if (i.ServiceDescription.EndsWith("?")) + if (i.ServiceDescription != null && i.ServiceDescription.EndsWith("?")) { i.ServiceDescription = i.ServiceDescription.Replace("?", "€"); }