From 743a97e6de9b3149c15635d5d95372e8e68e702a Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 7 Feb 2024 21:04:08 +0100 Subject: [PATCH] XRechnung 3.0.1 rules updated to reference EN 16931 rules 1.3.11 --- README.md | 2 ++ .../helger/phive/xrechnung/XRechnungValidation.java | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 746c12bd..8f520950 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,8 @@ I hope that with the introduction of PINT, the versioning problem will be solved # News and noteworthy +* v3.1.7 - work in progress + * XRechnung 3.0.1 rules updated to reference EN 16931 rules 1.3.11 (was 1.3.10) * v3.1.6 - 2023-11-30 * Added Peppol November 2023 release (Billing 3.0.16 and Upgrade 3.0.12) * Moved Peppol 3.15.0 rules from `phive-rules-peppol` to `phive-rules-peppol-legacy` diff --git a/phive-rules-xrechnung/src/main/java/com/helger/phive/xrechnung/XRechnungValidation.java b/phive-rules-xrechnung/src/main/java/com/helger/phive/xrechnung/XRechnungValidation.java index 3754977e..fe077b68 100644 --- a/phive-rules-xrechnung/src/main/java/com/helger/phive/xrechnung/XRechnungValidation.java +++ b/phive-rules-xrechnung/src/main/java/com/helger/phive/xrechnung/XRechnungValidation.java @@ -477,8 +477,8 @@ public static void initXRechnung (@Nonnull final IValidationExecutorSetRegistry UBL21NamespaceContext.getInstance ()))); } - // v3.0.1 (based on rule release 2.0.1) - // Uses CEN rules 1.3.10 + // v3.0.1 (based on rule release 2.0.2) + // Uses CEN rules 1.3.11 { final ICommonsMap aCustomErrorLevels = new CommonsHashMap <> (); aCustomErrorLevels.put ("BR-CL-23", EErrorLevel.WARN); @@ -488,7 +488,7 @@ public static void initXRechnung (@Nonnull final IValidationExecutorSetRegistry VID_XRECHNUNG_CII_301.getVersionString (), bNotDeprecated, ValidationExecutorXSD.create (CCIID16B.getXSDResource ()), - ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_CII_1310_XSLT, + ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_CII_1311_XSLT, UBL21NamespaceContext.getInstance ()) .addCustomErrorLevels (aCustomErrorLevels), ValidationExecutorSchematron.createXSLT (new ClassPathResource (sPrefix + @@ -500,7 +500,7 @@ public static void initXRechnung (@Nonnull final IValidationExecutorSetRegistry VID_XRECHNUNG_UBL_CREDITNOTE_301.getVersionString (), bNotDeprecated, ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()), - ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_UBL_1310_XSLT, + ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_UBL_1311_XSLT, UBL21NamespaceContext.getInstance ()) .addCustomErrorLevels (aCustomErrorLevels), ValidationExecutorSchematron.createXSLT (new ClassPathResource (sPrefix + @@ -512,7 +512,7 @@ public static void initXRechnung (@Nonnull final IValidationExecutorSetRegistry VID_XRECHNUNG_UBL_INVOICE_301.getVersionString (), bNotDeprecated, ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()), - ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_UBL_1310_XSLT, + ValidationExecutorSchematron.createXSLT (EN16931Validation.INVOICE_UBL_1311_XSLT, UBL21NamespaceContext.getInstance ()) .addCustomErrorLevels (aCustomErrorLevels), ValidationExecutorSchematron.createXSLT (new ClassPathResource (sPrefix +