check BT-32 scheme id in Visu translation files
The translation files contain scheme id information for BT-32, e.g.
<entry key="xr:Seller_tax_registration_identifier/@scheme_identifier" id="BT-32_scheme">Schema der Steuernummer</entry>
In xrechnung-html.xsl, a field is provided for BT-32 scheme ID:
<div class="boxzeile" role="listitem">
<div class="boxdaten legende">
<xsl:value-of select="xrf:_('xr:Seller_tax_registration_identifier/@scheme_identifier')" />:
</div>
<div data-title="BT-32-scheme" class="BT-32-scheme boxdaten wert">
<xsl:value-of select="xr:Seller_tax_registration_identifier/@scheme_identifier" />
</div>
</div>
However, neither the XRechnung semantic model nor EN 16931 do contain information on a scheme identifier for BT-32. Nor does the PDF visualization (on line <xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_tax_registration_identifier"/>
):
<xsl:template name="zusaetzeVerkaeufer">
<xsl:call-template name="box">
<xsl:with-param name="identifier" select="'zusaetzeVerkaeufer'"/>
<xsl:with-param name="content">
<xsl:call-template name="list">
<xsl:with-param name="content">
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_trading_name"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:SELLER_POSTAL_ADDRESS/xr:Seller_country_subdivision"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_electronic_address"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_electronic_address/@scheme_identifier">
<xsl:with-param name="field-mapping-identifier" select="'xr:Seller_electronic_address/@scheme_identifier'"/>
</xsl:apply-templates>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_legal_registration_identifier"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_legal_registration_identifier/@scheme_identifier">
<xsl:with-param name="field-mapping-identifier" select="'xr:Seller_legal_registration_identifier/@scheme_identifier'"/>
</xsl:apply-templates>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_VAT_identifier"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_tax_registration_identifier"/>
<xsl:apply-templates mode="list-entry" select="xr:SELLER/xr:Seller_additional_legal_information"/>
<xsl:apply-templates mode="list-entry" select="xr:VAT_accounting_currency_code"/>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
In CII, BT-32 is bound to /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID
, where the related schemeID has to be 'FC':
<xsl:template mode="BT-32"
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID='FC']">
<xr:Seller_tax_registration_identifier>
<xsl:attribute name="xr:id" select="'BT-32'"/>
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
<xsl:call-template name="identifier"/>
</xr:Seller_tax_registration_identifier>
</xsl:template>
The "identifier" template creates the @scheme_identifier
and inserts 'FC' as scheme identifier in uncefact html documents, where a tax number is available. This is incorrect.