attachedFiles=zii.getFileAttachmentsXML();
assertNotNull(attachedFiles);
diff --git a/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2Test.java b/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2Test.java
index 2ae78e90..d945c770 100644
--- a/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2Test.java
+++ b/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2Test.java
@@ -1,22 +1,24 @@
-/** **********************************************************************
- *
+/**
+ * *********************************************************************
+ *
* Copyright 2019 Jochen Staerk
- *
+ *
* Use is subject to license terms.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0.
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *
+ *
* See the License for the specific language governing permissions and
* limitations under the License.
- *
- *********************************************************************** */
+ *
+ * **********************************************************************
+ */
package org.mustangproject.ZUGFeRD;
import java.io.IOException;
@@ -99,9 +101,9 @@ public class ZF2Test extends MustangReaderTestCase {
public IZUGFeRDExportableItem[] getZFItems() {
final Item[] allItems = new Item[3];
final Product designProduct = new Product("", "Künstlerische Gestaltung (Stunde): Einer Beispielrechnung", "HUR",
- new BigDecimal("7.000000"));
+ new BigDecimal("7.000000"));
final Product balloonProduct = new Product("", "Bestellerweiterung für E&F Umbau", "C62",
- new BigDecimal("19.000000"));// test for issue 103
+ new BigDecimal("19.000000"));// test for issue 103
final Product airProduct = new Product("", "Heiße Luft pro Liter", "LTR", new BigDecimal("19.000000"));
allItems[0] = new Item(new BigDecimal("160"), new BigDecimal("1"), designProduct);
@@ -166,12 +168,12 @@ public class ZF2Test extends MustangReaderTestCase {
// the writing part
try (InputStream SOURCE_PDF = this.getClass()
- .getResourceAsStream("/MustangGnuaccountingBeispielRE-20170509_505PDFA3.pdf");
+ .getResourceAsStream("/MustangGnuaccountingBeispielRE-20170509_505PDFA3.pdf");
ZUGFeRDExporterFromA3 ze = new ZUGFeRDExporterFromA3().setProducer("My Application")
- .setCreator(System.getProperty("user.name")).setZUGFeRDVersion(2).setProfile("EN16931")
- .load(SOURCE_PDF)) {
-
+ .setCreator(System.getProperty("user.name")).setZUGFeRDVersion(2).setProfile("EN16931")
+ .load(SOURCE_PDF)) {
+
ze.setTransaction(this);
final String theXML = new String(ze.getProvider().getXML());
assertTrue(theXML.contains("
+
+
+
+
+ urn:cen.eu:en16931:2017
+
+
+
+ 471102
+ 380
+
+ 20180304
+
+
+
+
+
+ 1
+
+
+ Trennblätter A4
+
+
+
+ 9.9000
+ 1.0000
+
+
+
+ 20.0000
+
+
+
+ VAT
+ S
+ 19.00
+
+
+ 198.00
+
+
+
+
+
+ 2
+
+
+ Joghurt Banane
+
+
+
+ 5.5000
+ 1.0000
+
+
+
+ 50.0000
+
+
+
+ VAT
+ S
+ 7.00
+
+
+ 275.00
+
+
+
+
+
+ Lieferant GmbH
+
+ 80333
+ Lieferantenstraße 20
+ München
+ DE
+
+
+ DE123456789
+
+
+ 201/113/40209
+
+
+
+ Kunden AG Mitte
+
+ 69876
+ Kundenstraße 15
+ Frankfurt
+ DE
+
+
+
+
+
+
+ 20180304
+
+
+
+
+ DE98ZZZ09999999999
+ EUR
+
+ 59
+
+ DE21860000000086001055
+
+
+ 19.25
+ VAT
+ 275.00
+ S
+ 7.00
+
+
+ 37.62
+ VAT
+ 198.00
+ S
+ 19.00
+
+
+ Der Betrag in Höhe von EUR 529,87 wird am 20.03.2018 von Ihrem Konto per SEPA-Lastschrift eingezogen.
+
+ REF A-123
+
+
+ 473.00
+ 0.00
+ 0.00
+ 473.00
+ 56.87
+ 529.87
+ 0.00
+ 529.87
+
+
+
+
\ No newline at end of file
diff --git a/library/src/test/resources/not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.cii.xml b/library/src/test/resources/not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.cii.xml
index 9f8d1044..33678310 100644
--- a/library/src/test/resources/not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.cii.xml
+++ b/library/src/test/resources/not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.cii.xml
@@ -1,5 +1,8 @@
-
+
BT-23 Business Process Type
@@ -16,11 +19,11 @@
invoice note text
- #AAA#
+ AAA
invoice note text 2
- #AAA#
+ AAA
@@ -32,7 +35,9 @@
- Item standar identifier
+ Item standar identifier
+
+
Item seller's identifier
Item buyer's identifier
Item name
@@ -95,7 +100,7 @@
1.00
1000.00
10.00
- 55
+ 95
Invoice line allowance reason
@@ -114,7 +119,6 @@
Line object identifier
130
-
6789
@@ -155,7 +159,7 @@
Seller name
Seller additional legal information
- Seller legal identifier
+
Seller trading name
@@ -177,7 +181,7 @@
Seller country subdivision
- Seller electronic address
+ Seller electronic address
DE12345677
@@ -212,7 +216,7 @@
Buyer country subdivision
- Buyer electronic address
+ Buyer electronic address
IE394838894
@@ -252,7 +256,7 @@
rst
130
- 0090
+ AAA
456
@@ -311,23 +315,23 @@
IT1212341234123412
Payment account name
-
- BSCTCH22
-
-
+
+
+
50.00
VAT
1000.00
S
- 29
+
5.00
@@ -336,7 +340,7 @@
Exemtion reason text
1000.00
E
- Exemption reason code
+ VATEX-EU-O
29
0.00
@@ -355,7 +359,7 @@
1.00
1000.00
10.00
- 55
+ 95
Doc allowance reason text
VAT
@@ -408,4 +412,4 @@
-
+
\ No newline at end of file
diff --git a/validator/pom.xml b/validator/pom.xml
index ec333d9e..362ce454 100644
--- a/validator/pom.xml
+++ b/validator/pom.xml
@@ -54,7 +54,6 @@
org.apache.pdfbox
pdfbox
3.0.2
- test