Merge remote-tracking branch 'remotes/origin/master'

This commit is contained in:
Sebastian Sieber
2021-03-02 09:34:56 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
- PR #225 exemption reasons only for certain tax category codes thanks to weclapp-dev
- allow 1.2 and 2.0 in RDF versions for XRechnung 2.0 Referenzprofil
2.1.1
=======
2020-02-09

View File

@@ -246,7 +246,7 @@ public class PDFValidator extends Validator {
boolean versionValid=false;
for (int i = 0; i < nodes.getLength(); i++) {
String[] valueArray = { "1.0", "2p0", "1p2" }; //1p2 is for xrechnung 1.2, 2p0 can be ZF 2.0, 2.1, 2.1.1 or XRechnung 2
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
if (stringArrayContains(valueArray, nodes.item(i).getTextContent())) {
versionValid=true;
} // e.g. 1.0