corrected default conformance level to en16931

This commit is contained in:
Jochen Stärk
2019-10-24 21:47:11 +02:00
parent 60156b1561
commit 9e747ca1e6
2 changed files with 4 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ public class ZUGFeRDExporter implements Closeable {
// BASIC, COMFORT etc - may be set from outside.
@Deprecated
private ZUGFeRDConformanceLevel profile = ZUGFeRDConformanceLevel.EXTENDED;
private ZUGFeRDConformanceLevel profile = ZUGFeRDConformanceLevel.EN16931;
/**
* Data (XML invoice) to be added to the ZUGFeRD PDF. It may be externally set,

View File

@@ -188,8 +188,9 @@ public class ZF2Test extends MustangReaderTestCase {
.getResourceAsStream("/MustangGnuaccountingBeispielRE-20170509_505PDFA3.pdf");
ZUGFeRDExporter ze = new ZUGFeRDExporterFromA3Factory().setProducer("My Application")
.setCreator(System.getProperty("user.name")).setZUGFeRDVersion(2).ignorePDFAErrors()
.load(SOURCE_PDF)) {
.setCreator(System.getProperty("user.name")).setZUGFeRDVersion(2).setZUGFeRDConformanceLevel(ZUGFeRDConformanceLevel.EN16931).ignorePDFAErrors()
.load(SOURCE_PDF)) {
ze.PDFattachZugferdFile(this);
String theXML = new String(ze.getProvider().getXML());
assertTrue(theXML.contains("<rsm:CrossIndustryInvoice"));