Skip to content

Commit

Permalink
Added Peppol A-NZ-PEPPOL 1.0.10 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Feb 18, 2024
1 parent ef2b797 commit e697737
Show file tree
Hide file tree
Showing 41 changed files with 27,254 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved

* v3.1.7 - work in progress
* XRechnung 3.0.1 rules updated to reference EN 16931 rules 1.3.11 (was 1.3.10)
* Added Peppol A-NZ-PEPPOL 1.0.10 rules
* 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`
Expand Down
4 changes: 2 additions & 2 deletions phive-rules-peppol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>src/test/resources/external/rule-source/aunz-peppol/1.0.9</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/peppol-aunz/1.0.9/xslt</xsltDirectory>
<schematronDirectory>src/test/resources/external/rule-source/aunz-peppol/1.0.10</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/peppol-aunz/1.0.10/xslt</xsltDirectory>
</configuration>
</execution>
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ private static ClassLoader _getCL ()
"creditnote-self-billing",
"1.0.9");

// 1.0.10
public static final VESID VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_10 = new VESID ("eu.peppol.bis3.aunz.ubl",
"invoice",
"1.0.10");
public static final VESID VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_10 = new VESID ("eu.peppol.bis3.aunz.ubl",
"invoice-self-billing",
"1.0.10");
public static final VESID VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_1_0_10 = new VESID ("eu.peppol.bis3.aunz.ubl",
"creditnote",
"1.0.10");
public static final VESID VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_10 = new VESID ("eu.peppol.bis3.aunz.ubl",
"creditnote-self-billing",
"1.0.10");

private PeppolValidationAUNZ ()
{}

Expand Down Expand Up @@ -274,5 +288,58 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_UBL_109,
aNSCtxCreditNote)));
}

// 1.0.10
{
final IReadableResource BIS3_BILLING_AUNZ_PEPPOL_SELF_BILLING_1_0_10 = new ClassPathResource (BASE_PATH +
"1.0.10/xslt/AUNZ-PEPPOL-SB-validation.xslt",
_getCL ());
final IReadableResource BIS3_BILLING_AUNZ_PEPPOL_1_0_10 = new ClassPathResource (BASE_PATH +
"1.0.10/xslt/AUNZ-PEPPOL-validation.xslt",
_getCL ());
final IReadableResource BIS3_BILLING_AUNZ_UBL_1_0_10 = new ClassPathResource (BASE_PATH +
"1.0.10/xslt/AUNZ-UBL-validation.xslt",
_getCL ());

final String sVersion1010 = VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_10.getVersionString ();
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_10,
"A-NZ Peppol BIS3 Invoice (UBL) " +
sVersion1010,
bNotDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_PEPPOL_1_0_10,
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_UBL_1_0_10,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_1_0_10,
"A-NZ Peppol BIS3 CreditNote (UBL) " +
sVersion1010,
bNotDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_PEPPOL_1_0_10,
aNSCtxCreditNote),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_UBL_1_0_10,
aNSCtxCreditNote)));

// Self-billing
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_10,
"A-NZ Peppol BIS3 Invoice Self-Billing (UBL) " +
sVersion1010,
bNotDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllInvoiceXSDs ()),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_PEPPOL_SELF_BILLING_1_0_10,
aNSCtxInvoice),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_UBL_1_0_10,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_10,
"A-NZ Peppol BIS3 CreditNote Self-Billing (UBL) " +
sVersion1010,
bNotDeprecated,
ValidationExecutorXSD.create (UBL21Marshaller.getAllCreditNoteXSDs ()),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_PEPPOL_SELF_BILLING_1_0_10,
aNSCtxCreditNote),
ValidationExecutorSchematron.createXSLT (BIS3_BILLING_AUNZ_UBL_1_0_10,
aNSCtxCreditNote)));
}
}
}
Loading

0 comments on commit e697737

Please sign in to comment.