Clientseitig wird nun auch verschiedene Sender Addressen in Gkv Erstellung ausgeschlossen

This commit is contained in:
2024-12-06 12:36:58 +01:00
parent a96981953d
commit ffd3a3a9d4
8 changed files with 188 additions and 277 deletions

View File

@@ -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}";
}
}