Include first line of unstructured street in AdrLine tag of SEPA message

Since 327f65ad55e6 the StrtNm tag is no more the first line of the street so
this lines must be included in AdrLine.

Closes #15036
This commit is contained in:
Cédric Krier
2026-08-24 11:56:05 +02:00
parent c18ab9e30f
commit bbbea59530
2 changed files with 2 additions and 2 deletions
@@ -50,7 +50,7 @@ this repository contains the full copyright notices and license terms. -->
<py:def function="PostalAddress(address)">
<Ctry py:if="address.country">${normalize('NFKD', address.country.code).encode('ascii', 'replace')}</Ctry>
<py:if test="address.street">
<py:for each="line in address.street.splitlines()[1:8]">
<py:for each="line in address.street.splitlines()[:8]">
<AdrLine py:if="address.street">${normalize('NFKD', line).encode('ascii', 'replace')[:70]}</AdrLine>
</py:for>
</py:if>
@@ -55,7 +55,7 @@ this repository contains the full copyright notices and license terms. -->
<CtrySubDvsn py:if="address.subdivision">${address.subdivision.rec_name[:35]}</CtrySubDvsn>
<Ctry py:if="address.country">${address.country.code}</Ctry>
<py:if test="address.street_unstructured">
<py:for each="line in address.street_unstructured.splitlines()[1:8]">
<py:for each="line in address.street_unstructured.splitlines()[:8]">
<AdrLine py:if="line">${line[:70]}</AdrLine>
</py:for>
</py:if>