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 (grafted from 3f9bfd6ce8b9dcb718a20272eb37f1cb83f727e8) --HG-- branch : 8.0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user