Fix parsing address

This commit is contained in:
Claudio Schaad 2020-10-03 10:22:32 +02:00
parent 50c0074f2d
commit 761e508143
2 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View file

@ -17,3 +17,5 @@
/Schaad.Finance/bin/Release/netstandard2.1 /Schaad.Finance/bin/Release/netstandard2.1
/Schaad.Finance.Api/bin/Release/netstandard2.1 /Schaad.Finance.Api/bin/Release/netstandard2.1
/Schaad.Finance.Tests/bin/Release/netcoreapp3.1 /Schaad.Finance.Tests/bin/Release/netcoreapp3.1
/Schaad.Finance.Tests/bin/Debug/netcoreapp3.1
/Schaad.Finance.Api/bin/Debug/netstandard2.1

View file

@ -183,11 +183,14 @@ namespace Schaad.Finance.Formats.AccountStatements
AddIfNotEmpty(texts, entry.PstlAdr.PstCd); AddIfNotEmpty(texts, entry.PstlAdr.PstCd);
AddIfNotEmpty(texts, entry.PstlAdr.TwnNm); AddIfNotEmpty(texts, entry.PstlAdr.TwnNm);
if (entry.PstlAdr.AdrLine != null)
{
foreach (var line in entry.PstlAdr.AdrLine) foreach (var line in entry.PstlAdr.AdrLine)
{ {
AddIfNotEmpty(texts, line); AddIfNotEmpty(texts, line);
} }
} }
}
return GetAddress(texts); return GetAddress(texts);
} }