Skip to content

Commit

Permalink
Added Peppol PINT rules 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Dec 3, 2024
1 parent aa7f487 commit 7fadfa8
Show file tree
Hide file tree
Showing 8 changed files with 7,337 additions and 20 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved
* v3.2.2 - work in progress
* Updated to XRechnung 3.0.2 Schematron Rules 2.2.0
* Added Peppol November 2024 release (Billing 3.0.18 and Upgrade 3.0.14)
* Added Peppol PINT rules 1.0.3
* v3.2.1 - 2024-10-09
* Added support for EN 16931 rules v1.3.13 format and deprecated v1.3.11
* v3.2.0 - 2024-09-16
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions phive-rules-peppol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>src/test/resources/external/rule-source/pint/1.0.2</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/pint/1.0.2/xslt</xsltDirectory>
<schematronDirectory>src/test/resources/external/rule-source/pint/1.0.3</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/pint/1.0.3/xslt</xsltDirectory>
</configuration>
</execution>
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ public final class PeppolValidationPint
"credit-note",
"1.0.2");

// 1.0.3
public static final DVRCoordinate VID_OPENPEPPOL_PINT_INVOICE_1_0_3 = PhiveRulesHelper.createCoordinate (GROUP_ID,
"invoice",
"1.0.3");
public static final DVRCoordinate VID_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_3 = PhiveRulesHelper.createCoordinate (GROUP_ID,
"credit-note",
"1.0.3");

private PeppolValidationPint ()
{}

Expand All @@ -92,62 +100,84 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat

// 1.0.0 - 2023-07-07
{
final ClassPathResource RES_OPENPEPPOL_PINT_1_0_0 = new ClassPathResource (BASE_PATH +
"1.0.0/xslt/PINT-UBL-validation-preprocessed.xslt",
_getCL ());
final ClassPathResource aRes = new ClassPathResource (BASE_PATH +
"1.0.0/xslt/PINT-UBL-validation-preprocessed.xslt",
_getCL ());

aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_INVOICE_1_0_0,
"OpenPeppol PINT Invoice (UBL) 1.0.0",
PhiveRulesHelper.createSimpleStatus (bDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_1_0_0,
PhiveRulesHelper.createXSLT (aRes,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_0,
"OpenPeppol PINT Credit Note (UBL) 1.0.0",
PhiveRulesHelper.createSimpleStatus (bDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_1_0_0,
PhiveRulesHelper.createXSLT (aRes,
aNSCtxCreditNote)));
}

// 1.0.1 - November 2023
{
final ClassPathResource RES_OPENPEPPOL_PINT_1_0_1 = new ClassPathResource (BASE_PATH +
"1.0.1/xslt/PINT-UBL-validation-preprocessed.xslt",
_getCL ());
final ClassPathResource aRes = new ClassPathResource (BASE_PATH +
"1.0.1/xslt/PINT-UBL-validation-preprocessed.xslt",
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_INVOICE_1_0_1,
"OpenPeppol PINT Invoice (UBL) 1.0.1",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_1_0_1,
PhiveRulesHelper.createXSLT (aRes,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_1,
"OpenPeppol PINT Credit Note (UBL) 1.0.1",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_1_0_1,
PhiveRulesHelper.createXSLT (aRes,
aNSCtxCreditNote)));
}

// 1.0.2 - May 2024
{
final ClassPathResource RES_OPENPEPPOL_PINT_INVOICE_1_0_2 = new ClassPathResource (BASE_PATH +
"1.0.2/xslt/PINT-UBL-validation-preprocessed-inv.xslt",
_getCL ());
final ClassPathResource RES_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_2 = new ClassPathResource (BASE_PATH +
"1.0.2/xslt/PINT-UBL-validation-preprocessed-cn.xslt",
_getCL ());
final ClassPathResource aResInvoice = new ClassPathResource (BASE_PATH +
"1.0.2/xslt/PINT-UBL-validation-preprocessed-inv.xslt",
_getCL ());
final ClassPathResource aResCreditNote = new ClassPathResource (BASE_PATH +
"1.0.2/xslt/PINT-UBL-validation-preprocessed-cn.xslt",
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_INVOICE_1_0_2,
"OpenPeppol PINT Invoice (UBL) 1.0.2",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_INVOICE_1_0_2,
PhiveRulesHelper.createXSLT (aResInvoice,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_2,
"OpenPeppol PINT Credit Note (UBL) 1.0.2",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
PhiveRulesHelper.createXSLT (RES_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_2,
PhiveRulesHelper.createXSLT (aResCreditNote,
aNSCtxCreditNote)));
}

// 1.0.3 - November 2024
{
final ClassPathResource aResInvoice = new ClassPathResource (BASE_PATH +
"1.0.3/xslt/PINT-UBL-validation-preprocessed-inv.xslt",
_getCL ());
final ClassPathResource aResCreditNote = new ClassPathResource (BASE_PATH +
"1.0.3/xslt/PINT-UBL-validation-preprocessed-cn.xslt",
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_INVOICE_1_0_3,
"OpenPeppol PINT Invoice (UBL) 1.0.3",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
PhiveRulesHelper.createXSLT (aResInvoice,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_PINT_CREDIT_NOTE_1_0_3,
"OpenPeppol PINT Credit Note (UBL) 1.0.3",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
PhiveRulesHelper.createXSLT (aResCreditNote,
aNSCtxCreditNote)));
}
}
Expand Down
Loading

0 comments on commit 7fadfa8

Please sign in to comment.