DeliveryNote: Rework according to Herbert

This commit is contained in:
2023-10-10 16:24:16 +02:00
parent 9df8056616
commit 0e9bae4ec9
6 changed files with 41 additions and 15 deletions

View File

@ -20,6 +20,10 @@ namespace Elwig.Helpers {
public string Name;
public string? NameSuffix;
public string NameType;
public string NameTypeFull => NameType.Replace(".", "").Replace(" ", "").ToLower() switch {
"reggenmbh" => "registrierte Genossenschaft mit beschränkter Haftung",
_ => NameType,
};
public string NameFull => NameSuffix == null ? $"{Name} {NameType}" : $"{Name}, {NameSuffix}, {NameType}";
public Type? Client;