allow any vat-type to be exported as 'SpecifiedTaxRegistration'

This commit is contained in:
Frederik Jaeckel 2025-06-11 15:57:35 +02:00
parent 437f047e44
commit f3375d3d39

View file

@ -19,7 +19,7 @@ this repository contains the full copyright notices and license terms. -->
</py:for>
</ram:SpecifiedLegalOrganization>
<ram:PostalTradeAddress py:if="address">${TradeAddress(address)}</ram:PostalTradeAddress>
<ram:SpecifiedTaxRegistration py:if="tax_identifier and tax_identifier.type == 'eu_vat'">
<ram:SpecifiedTaxRegistration py:if="tax_identifier and tax_identifier.type.endswith('_vat')">
<ram:ID schemeID='VA'>${tax_identifier.code}</ram:ID>
</ram:SpecifiedTaxRegistration>
</py:def>