allow 2.1 in RDF metadata in validation for Referenzprofil XRechnung's v 2.1.1

This commit is contained in:
jstaerk
2022-02-21 10:09:52 +01:00
parent 18ef5044b3
commit 76af482fe6
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
- allow 2.1 in RDF metadata in validation for Referenzprofil XRechnung's v 2.1.1
- log whether a XML or a PDF file was validated - log whether a XML or a PDF file was validated
- XR improvements PR 261 e.g. Allowing the XRechnung version to be explicitly set in the PDF - XR improvements PR 261 e.g. allowing the XRechnung version to be explicitly set in the PDF
- allow to specify a tradeparties' legalorganisation i.e. allow to write Factur-X invoices to french authorities - allow to specify a tradeparties' legalorganisation i.e. allow to write Factur-X invoices to french authorities
2.4.0
- 2.4.0
======= =======
2022-01-13 2022-01-13

View File

@@ -240,7 +240,7 @@ public class PDFValidator extends Validator {
boolean versionValid=false; boolean versionValid=false;
for (int i = 0; i < nodes.getLength(); i++) { for (int i = 0; i < nodes.getLength(); i++) {
final String[] valueArray = { "1.0", "2p0", "1.2", "2.0" }; //1.2 and 2.0 are for xrechnung 1.2, 2p0 can be ZF 2.0, 2.1, 2.1.1 final String[] valueArray = { "1.0", "2p0", "1.2", "2.0" , "2.1" }; //1.2, 2.0 and 2.1 are for xrechnung 1.2, 2p0 can be ZF 2.0, 2.1, 2.1.1
if (stringArrayContains(valueArray, nodes.item(i).getTextContent())) { if (stringArrayContains(valueArray, nodes.item(i).getTextContent())) {
versionValid=true; versionValid=true;
} // e.g. 1.0 } // e.g. 1.0