PraxisPusteblume: Auf Sammelrechnung NPE bei leerer ServiceDescription vermeiden
This commit is contained in:
@@ -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("?", "€");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user