corrections for OX order-change and order-response
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- falscher Text in Exception #237
|
- falscher Text in Exception #237
|
||||||
- pr 240 ignore input pdf errors when specfied on command line https://github.com/ZUGFeRD/mustangproject/pull/240
|
- 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
|
- 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
|
2.1.1
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ public class PDFValidator extends Validator {
|
|||||||
|
|
||||||
boolean documentTypeValid=false;
|
boolean documentTypeValid=false;
|
||||||
for (int i = 0; i < nodes.getLength(); i++) {
|
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;
|
documentTypeValid=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user