Clientseitig wird nun auch verschiedene Sender Addressen in Gkv Erstellung ausgeschlossen
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using BS.Shared.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
@@ -112,5 +113,23 @@ namespace BS.Shared.Extensions
|
||||
|
||||
return rtn;
|
||||
}
|
||||
|
||||
public static bool AreAllTheSame(this IEnumerable<string> list)
|
||||
{
|
||||
if (list is null || !list.Any())
|
||||
return true;
|
||||
|
||||
string init = list.First();
|
||||
foreach (var str in list)
|
||||
{
|
||||
if (str != init)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static string SenderAddressToString(this IInvoiceBase invoiceBase)
|
||||
=> $"{invoiceBase.SenderStreet}, {invoiceBase.SenderTown}, {invoiceBase.SenderPostCode}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user