corrected default conformance level to en16931
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user