Now also running EN16931 validation on Basic, which apparently is also a CIUS

This commit is contained in:
jstaerk
2022-10-24 14:17:17 +02:00
parent 306487291f
commit f2e6a2e580
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
- Import of ZF1 invoices (thanks to Stefan Schmaltz https://github.com/ZUGFeRD/mustangproject/pull/292) - Import of ZF1 invoices (thanks to Stefan Schmaltz https://github.com/ZUGFeRD/mustangproject/pull/292)
- works again in Java 1.8 (#286) - works again in Java 1.8 (#286)
- updated Jackson https://github.com/ZUGFeRD/mustangproject/pull/293 - updated Jackson https://github.com/ZUGFeRD/mustangproject/pull/293
- now also running EN16931 checks on Basic, which apparently is also a CIUS
2.5.6 2.5.6
======= =======

View File

@@ -333,7 +333,7 @@ public class XMLValidator extends Validator {
if (context.getFormat().equals("CII")) { if (context.getFormat().equals("CII")) {
if (context.getGeneration().equals("2") if (context.getGeneration().equals("2")
&& (isEN16931 || isXRechnung)) { && (isBasic || isEN16931 || isXRechnung)) {
//additionally validate against CEN //additionally validate against CEN
validateSchematron(zfXML, "/xslt/cii16931schematron/EN16931-CII-validation.xslt", 24, ESeverity.error); validateSchematron(zfXML, "/xslt/cii16931schematron/EN16931-CII-validation.xslt", 24, ESeverity.error);
if (!disableNotices || XrechnungSeverity != ESeverity.notice) { if (!disableNotices || XrechnungSeverity != ESeverity.notice) {