Merge pull request #518 from stmue/xrechnung_version_information

correct version information for standard xrechnung
This commit is contained in:
Jochen Staerk
2024-10-24 08:05:52 +02:00
committed by GitHub

View File

@@ -239,7 +239,8 @@ 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", "2.1", "3.0"}; //1.2, 2.0, 2.1 and 3.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", "2.2", "2.3", "3.0"}; //1.2, 2.0, 2.1, 2.2, 2.3 and 3.0 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