corrections for OX order-change and order-response

This commit is contained in:
jstaerk
2021-05-09 14:11:33 +02:00
parent 42795b17cc
commit 3c1d0b7759
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
- falscher Text in Exception #237
- pr 240 ignore input pdf errors when specfied on command line https://github.com/ZUGFeRD/mustangproject/pull/240
- pr 241 use sepa transfer instead of bank transfer https://github.com/ZUGFeRD/mustangproject/pull/241
- be able to validate Order-X files
2.1.1
=======

View File

@@ -199,7 +199,7 @@ public class PDFValidator extends Validator {
boolean documentTypeValid=false;
for (int i = 0; i < nodes.getLength(); i++) {
if (nodes.item(i).getTextContent().equals("INVOICE")||nodes.item(i).getTextContent().equals("ORDER")) {
if (nodes.item(i).getTextContent().equals("INVOICE")||nodes.item(i).getTextContent().equals("ORDER")||nodes.item(i).getTextContent().equals("ORDER_RESPONSE")||nodes.item(i).getTextContent().equals("ORDER_CHANGE")) {
documentTypeValid=true;
}
}