From e30b4ba5b8adbfbc2a4076abce30942357e3c118 Mon Sep 17 00:00:00 2001 From: Andreas Reichmann Date: Wed, 5 Feb 2025 10:38:07 +0100 Subject: [PATCH] #562 OccurrenceDateTime Display OccurrenceDateTime (delivery address) in visualizations (HTML and PDF) when only the date is provided instead of the full delivery address. --- .../src/main/resources/stylesheets/cii-xr.xsl | 14 ++--- .../main/resources/stylesheets/xr-content.xsl | 2 +- .../src/test/resources/factur-x-vis.fr.html | 51 ++++++++++++++++++- 3 files changed, 58 insertions(+), 9 deletions(-) diff --git a/library/src/main/resources/stylesheets/cii-xr.xsl b/library/src/main/resources/stylesheets/cii-xr.xsl index f741c903..cf03f74e 100644 --- a/library/src/main/resources/stylesheets/cii-xr.xsl +++ b/library/src/main/resources/stylesheets/cii-xr.xsl @@ -130,7 +130,7 @@ + select="./rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery"/> @@ -1146,18 +1146,18 @@ + match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery"> - + - + select="ram:ShipToTradeParty/ram:ID[empty(following-sibling::ram:GlobalID/@schemeID)]"/> + + select="ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeString[@format='102']"/> - + diff --git a/library/src/main/resources/stylesheets/xr-content.xsl b/library/src/main/resources/stylesheets/xr-content.xsl index 4b8adb6f..cbc50ec2 100644 --- a/library/src/main/resources/stylesheets/xr-content.xsl +++ b/library/src/main/resources/stylesheets/xr-content.xsl @@ -789,7 +789,7 @@ - + diff --git a/library/src/test/resources/factur-x-vis.fr.html b/library/src/test/resources/factur-x-vis.fr.html index e22b12ef..5de16ae2 100644 --- a/library/src/test/resources/factur-x-vis.fr.html +++ b/library/src/test/resources/factur-x-vis.fr.html @@ -1905,6 +1905,55 @@
+
+
Informations de livraison
+
+
+
Identification du lieu de livraison:
+
+
+
+
Schéma de l'Identifiant:
+
+
+
+
Date de livraison:
+
10.11.2020
+
+
+
Nom du destinataire:
+
+
+
+
Rue / Numéro de maison:
+
+
+
+
Boîte postale:
+
+
+
+
Supplément d'adresse:
+
+
+
+
Code postal:
+
+
+
+
Lieu:
+
+
+
+
Région:
+
+
+
+
Pays:
+
+
+
+
@@ -2120,4 +2169,4 @@ function downloadData (element_id) { }); // - + \ No newline at end of file