From b1e60ce1a6e994a1cd5b4de437953fac42a9ed78 Mon Sep 17 00:00:00 2001 From: Lukas Kumai <l.kumai@lava-unternehmensberatung.de> Date: Fri, 7 Jun 2024 11:54:35 +0000 Subject: [PATCH] Resolve "BT-29 in CII" --- CHANGELOG.md | 5 +++-- src/xsl/cii-xr.xsl | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51dce58..b78f2b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,8 +11,9 @@ This release is compatible with XRechnung ?.?.? ### Fixed -* Wrong German translation for BT-10 (thanks to GitHub user @futurescenario9). -* Scheme identifier 'VAT' in BT-31 removed from templates +* Incorrect German translation for BT-10 (thanks to GitHub user @futurescenario9). +* BT-31: scheme identifier 'VAT' removed from templates +* condition removed from BT-29 in cii2xr conversion, which prevented display of multiple BT-29 from different bindings * Display of specification identifier in PDF ## v2023-11-15 diff --git a/src/xsl/cii-xr.xsl b/src/xsl/cii-xr.xsl index d5df9b2..30ef577 100644 --- a/src/xsl/cii-xr.xsl +++ b/src/xsl/cii-xr.xsl @@ -387,7 +387,7 @@ <xsl:apply-templates mode="BT-28" select="./ram:SpecifiedLegalOrganization/ram:TradingBusinessName"/> <xsl:apply-templates mode="BT-29" - select="./ram:ID[empty(following-sibling::ram:GlobalID/@schemeID)]"/> + select="./ram:ID"/> <xsl:apply-templates mode="BT-29" select="./ram:GlobalID[exists(@schemeID)]"/> <xsl:apply-templates mode="BT-30" select="./ram:SpecifiedLegalOrganization/ram:ID"/> <xsl:apply-templates mode="BT-31" @@ -424,7 +424,7 @@ </xr:Seller_trading_name> </xsl:template> <xsl:template mode="BT-29" - match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:ID[empty(following-sibling::ram:GlobalID/@schemeID)]"> + match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:ID"> <xr:Seller_identifier> <xsl:attribute name="xr:id" select="'BT-29'"/> <xsl:attribute name="xr:src" select="xr:src-path(.)"/>