Skip to content

Commit

Permalink
Added Peppol A-NZ-PEPPOL 1.0.12 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 3, 2025
1 parent b87b299 commit af12c86
Show file tree
Hide file tree
Showing 42 changed files with 27,550 additions and 70 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved

* v3.2.3 - work in progress
* Fixed Factur-X VES display name to include the profile name as well
* Added Peppol A-NZ-PEPPOL 1.0.12 rules
* Added support for ZuGFERD 2.0.1 - all profiles (XML only)
* Added support for ZuGFERD 2.1 - all profiles (XML only)
* v3.2.2 - 2024-12-05
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 @@ -137,8 +137,8 @@
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>src/test/resources/external/rule-source/aunz-peppol/1.0.11</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/peppol-aunz/1.0.11/xslt</xsltDirectory>
<schematronDirectory>src/test/resources/external/rule-source/aunz-peppol/1.0.12</schematronDirectory>
<xsltDirectory>src/main/resources/external/schematron/peppol-aunz/1.0.12/xslt</xsltDirectory>
</configuration>
</execution>
-->
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public static ICommonsList <PhiveTestFile> getAllTestFiles ()
PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_11,
PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_11,

PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_12,
PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_1_0_12,
PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_12,
PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_12,

/* BIS Singapore */
PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_INVOICE_2023_7,
PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_CREDIT_NOTE_2023_7,
Expand Down Expand Up @@ -283,7 +288,16 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_11))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.11/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Invoice.xml"),
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Freight - Document Level.xml"),
new FileSystemResource (sPrefix + "AU Freight - Line Item.xml"),
new FileSystemResource (sPrefix + "AU Freight Only - Line Item.xml"),
new FileSystemResource (sPrefix + "AU GST Only.xml"),
new FileSystemResource (sPrefix + "AU GST Only - Prepaid.xml"),
new FileSystemResource (sPrefix + "AU Invoice.xml"),
new FileSystemResource (sPrefix + "AU Invoice Energy Bill Example_1.xml"),
new FileSystemResource (sPrefix + "AU Invoice Energy Bill Example_2.xml"),
new FileSystemResource (sPrefix +
"AU Invoice Energy Bill Example_3_negative_inv.xml"),
new FileSystemResource (sPrefix + "NZ Allowance On Invoice Line.xml"),
new FileSystemResource (sPrefix + "NZ Invoice Level Allowance.xml"),
new FileSystemResource (sPrefix + "NZ Invoice Level Charge.xml"),
Expand All @@ -293,7 +307,8 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_1_0_11))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.11/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "NZ Credit note.xml"));
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Credit_note.xml"),
new FileSystemResource (sPrefix + "NZ Credit note.xml"));
}
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_11))
{
Expand All @@ -307,6 +322,43 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "NZ Self Billed Credit note.xml"));
}

// AUNZ 1.0.12
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_1_0_12))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.12/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Freight - Document Level.xml"),
new FileSystemResource (sPrefix + "AU Freight - Line Item.xml"),
new FileSystemResource (sPrefix + "AU Freight Only - Line Item.xml"),
new FileSystemResource (sPrefix + "AU GST Only.xml"),
new FileSystemResource (sPrefix + "AU GST Only - Prepaid.xml"),
new FileSystemResource (sPrefix + "AU Invoice.xml"),
new FileSystemResource (sPrefix + "AU Invoice Energy Bill Example_1.xml"),
new FileSystemResource (sPrefix + "AU Invoice Energy Bill Example_2.xml"),
new FileSystemResource (sPrefix +
"AU Invoice Energy Bill Example_3_negative_inv.xml"),
new FileSystemResource (sPrefix + "NZ Allowance On Invoice Line.xml"),
new FileSystemResource (sPrefix + "NZ Invoice Level Allowance.xml"),
new FileSystemResource (sPrefix + "NZ Invoice Level Charge.xml"),
new FileSystemResource (sPrefix + "NZ Prepaid Amount.xml"));
}
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_1_0_12))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.12/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Credit_note.xml"),
new FileSystemResource (sPrefix + "NZ Credit note.xml"));
}
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_12))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.12/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Self Billing.xml"),
new FileSystemResource (sPrefix + "NZ Self Billing.xml"));
}
if (aVESID.equals (PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_12))
{
final String sPrefix = sPrefix0 + "aunz-peppol/1.0.12/";
return new CommonsArrayList <> (new FileSystemResource (sPrefix + "NZ Self Billed Credit note.xml"));
}

// SG 2023.07
if (aVESID.equals (PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_INVOICE_2023_7))
{
Expand Down
Loading

0 comments on commit af12c86

Please sign in to comment.