Skip to content

Commit

Permalink
Added XRechnung 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jun 23, 2024
1 parent 4b83d82 commit 6cc493f
Show file tree
Hide file tree
Showing 148 changed files with 45,010 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ I hope that with the introduction of PINT, the versioning problem will be solved
* Added Peppol May 2024 release (Billing 3.0.17 and Upgrade 3.0.13)
* Added Peppol A-NZ-PEPPOL 1.0.11 rules
* Deprecated Peppol A-NZ-PEPPOL 1.0.9 rules
* Added XRechnung 3.0.0 rules (for completeness)
* Added XRechnung 3.0.2 rules
* v3.1.10 - 2024-05-16
* Added support for EN 16931 rules v1.3.12 format and deprecated v1.3.10
* All OIOUBL 1.x validations are now correctly based on UBL 2.1 instead of UBL 2.0
Expand Down
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions phive-rules-xrechnung/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>${basedir}/src/test/resources/external/rule-source/3.0.1/cii</schematronDirectory>
<xsltDirectory>${basedir}/src/main/resources/external/schematron/3.0.1</xsltDirectory>
<schematronDirectory>${basedir}/src/test/resources/external/rule-source/3.0.2/cii</schematronDirectory>
<xsltDirectory>${basedir}/src/main/resources/external/schematron/3.0.2</xsltDirectory>
<schematronPattern>*.sch</schematronPattern>
</configuration>
</execution>
Expand All @@ -121,8 +121,8 @@
<goal>convert</goal>
</goals>
<configuration>
<schematronDirectory>${basedir}/src/test/resources/external/rule-source/3.0.1/ubl</schematronDirectory>
<xsltDirectory>${basedir}/src/main/resources/external/schematron/3.0.1</xsltDirectory>
<schematronDirectory>${basedir}/src/test/resources/external/rule-source/3.0.2/ubl</schematronDirectory>
<xsltDirectory>${basedir}/src/main/resources/external/schematron/3.0.2</xsltDirectory>
<schematronPattern>*.sch</schematronPattern>
</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.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ private CTestFiles ()
public static ICommonsList <TestFile> getAllTestFiles ()
{
final ICommonsList <TestFile> ret = new CommonsArrayList <> ();
for (final VESID aESID : new VESID [] { XRechnungValidation.VID_XRECHNUNG_CII_301,
for (final VESID aESID : new VESID [] { XRechnungValidation.VID_XRECHNUNG_CII_302,
XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_302,
XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_302,

XRechnungValidation.VID_XRECHNUNG_CII_301,
XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_301,
XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_301,

XRechnungValidation.VID_XRECHNUNG_CII_300,
XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_300,
XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_300,

XRechnungValidation.VID_XRECHNUNG_CII_231,
XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_231,
XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_231,
Expand Down Expand Up @@ -687,6 +695,80 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
ret.add (new ClassPathResource (sPrefix + s));
}

// 3.0.0
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_CII_300))
{
final String sPrefix = sPrefix0 + "3.0.0/cii/";
for (final String s : new String [] { "01.01a-INVOICE_uncefact.xml",
"01.02a-INVOICE_uncefact.xml",
"01.03a-INVOICE_uncefact.xml",
"01.04a-INVOICE_uncefact.xml",
"01.05a-INVOICE_uncefact.xml",
"01.06a-INVOICE_uncefact.xml",
"01.07a-INVOICE_uncefact.xml",
"01.08a-INVOICE_uncefact.xml",
"01.09a-INVOICE_uncefact.xml",
"01.10a-INVOICE_uncefact.xml",
"01.11a-INVOICE_uncefact.xml",
"01.12a-INVOICE_uncefact.xml",
"01.13a-INVOICE_uncefact.xml",
"01.14a-INVOICE_uncefact.xml",
"01.15a-INVOICE_uncefact.xml",
"01.17a-INVOICE_uncefact.xml",
"01.18a-INVOICE_uncefact.xml",
"01.19a-INVOICE_uncefact.xml",
"01.20a-INVOICE_uncefact.xml",
"01.21a-INVOICE_uncefact.xml",
"02.01a-INVOICE_uncefact.xml",
"02.02a-INVOICE_uncefact.xml",
"02.03a-INVOICE_uncefact.xml",
"02.04a-INVOICE_uncefact.xml",
"02.05a-INVOICE_uncefact.xml",
"02.06a-INVOICE_uncefact.xml",
"03.01a-INVOICE_uncefact.xml",
"03.02a-INVOICE_uncefact.xml",
"03.03a-INVOICE_uncefact.xml",
"03.04a-INVOICE_uncefact.xml",
"03.05a-INVOICE_uncefact.xml",
"03.06a-INVOICE_uncefact.xml" })
ret.add (new ClassPathResource (sPrefix + s));
}
else
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_300))
{
// None atm
}
else
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_300))
{
final String sPrefix = sPrefix0 + "3.0.0/ubl-inv/";
for (final String s : new String [] { "01.01a-INVOICE_ubl.xml",
"01.02a-INVOICE_ubl.xml",
"01.03a-INVOICE_ubl.xml",
"01.04a-INVOICE_ubl.xml",
"01.05a-INVOICE_ubl.xml",
"01.06a-INVOICE_ubl.xml",
"01.07a-INVOICE_ubl.xml",
"01.08a-INVOICE_ubl.xml",
"01.09a-INVOICE_ubl.xml",
"01.10a-INVOICE_ubl.xml",
"01.11a-INVOICE_ubl.xml",
"01.12a-INVOICE_ubl.xml",
"01.13a-INVOICE_ubl.xml",
"01.14a-INVOICE_ubl.xml",
"01.17a-INVOICE_ubl.xml",
"01.18a-INVOICE_ubl.xml",
"01.19a-INVOICE_ubl.xml",
"01.20a-INVOICE_ubl.xml",
"01.21a-INVOICE_ubl.xml",
"02.01a-INVOICE_ubl.xml",
"02.02a-INVOICE_ubl.xml",
"03.01a-INVOICE_ubl.xml",
"03.02a-INVOICE_ubl.xml",
"03.06a-INVOICE_ubl.xml" })
ret.add (new ClassPathResource (sPrefix + s));
}

// 3.0.1
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_CII_301))
{
Expand Down Expand Up @@ -761,6 +843,79 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
ret.add (new ClassPathResource (sPrefix + s));
}

// 3.0.2
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_CII_302))
{
final String sPrefix = sPrefix0 + "3.0.2/cii/";
for (final String s : new String [] { "01.01a-INVOICE_uncefact.xml",
"01.02a-INVOICE_uncefact.xml",
"01.03a-INVOICE_uncefact.xml",
"01.04a-INVOICE_uncefact.xml",
"01.05a-INVOICE_uncefact.xml",
"01.06a-INVOICE_uncefact.xml",
"01.07a-INVOICE_uncefact.xml",
"01.08a-INVOICE_uncefact.xml",
"01.09a-INVOICE_uncefact.xml",
"01.10a-INVOICE_uncefact.xml",
"01.11a-INVOICE_uncefact.xml",
"01.12a-INVOICE_uncefact.xml",
"01.13a-INVOICE_uncefact.xml",
"01.14a-INVOICE_uncefact.xml",
"01.15a-INVOICE_uncefact.xml",
"01.17a-INVOICE_uncefact.xml",
"01.18a-INVOICE_uncefact.xml",
"01.19a-INVOICE_uncefact.xml",
"01.20a-INVOICE_uncefact.xml",
"01.21a-INVOICE_uncefact.xml",
"02.01a-INVOICE_uncefact.xml",
"02.02a-INVOICE_uncefact.xml",
"02.03a-INVOICE_uncefact.xml",
"02.04a-INVOICE_uncefact.xml",
"02.05a-INVOICE_uncefact.xml",
"02.06a-INVOICE_uncefact.xml",
"03.01a-INVOICE_uncefact.xml",
"03.02a-INVOICE_uncefact.xml",
"03.03a-INVOICE_uncefact.xml",
"03.04a-INVOICE_uncefact.xml",
"03.05a-INVOICE_uncefact.xml",
"03.06a-INVOICE_uncefact.xml" })
ret.add (new ClassPathResource (sPrefix + s));
}
else
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_UBL_CREDITNOTE_302))
{
// None atm
}
else
if (aVESID.equals (XRechnungValidation.VID_XRECHNUNG_UBL_INVOICE_302))
{
final String sPrefix = sPrefix0 + "3.0.2/ubl-inv/";
for (final String s : new String [] { "01.01a-INVOICE_ubl.xml",
"01.02a-INVOICE_ubl.xml",
"01.03a-INVOICE_ubl.xml",
"01.04a-INVOICE_ubl.xml",
"01.05a-INVOICE_ubl.xml",
"01.06a-INVOICE_ubl.xml",
"01.07a-INVOICE_ubl.xml",
"01.08a-INVOICE_ubl.xml",
"01.09a-INVOICE_ubl.xml",
"01.10a-INVOICE_ubl.xml",
"01.11a-INVOICE_ubl.xml",
"01.12a-INVOICE_ubl.xml",
"01.13a-INVOICE_ubl.xml",
"01.14a-INVOICE_ubl.xml",
"01.17a-INVOICE_ubl.xml",
"01.18a-INVOICE_ubl.xml",
"01.19a-INVOICE_ubl.xml",
"01.20a-INVOICE_ubl.xml",
"01.21a-INVOICE_ubl.xml",
"02.01a-INVOICE_ubl.xml",
"02.02a-INVOICE_ubl.xml",
"03.01a-INVOICE_ubl.xml",
"03.02a-INVOICE_ubl.xml",
"03.06a-INVOICE_ubl.xml" })
ret.add (new ClassPathResource (sPrefix + s));
}
return ret;
}
}
Loading

0 comments on commit 6cc493f

Please sign in to comment.