diff --git a/History.md b/History.md index d1269a22..a720a280 100644 --- a/History.md +++ b/History.md @@ -1,6 +1,5 @@ ### 2.0.1 todo -- confirm that VAT category code switches from S to Z on 0%VAT - 2.1 support kleinunternehmer, reverse charge? - dont show empty tax number field - fail when no bankverbindung? @@ -8,8 +7,13 @@ - build xr skonto??? - *validator not to XR error on ZF files (only notices) - xmp errors may not show correctly in log +### 2.0.1 done + - XR test now includes guideline ID #172 -- support zero-rated goods +- BigDecimal specific refactoring PR #192 Thanks to weclapp-dev +- Preserving metadata PR #193 Thanks to mr-stephan +- support zero-rated goods: confirm that VAT category code switches from S to Z on 0%VAT + 2.0.0 ===== 2020-11-12 diff --git a/validator/src/test/java/org/mustangproject/validator/LibraryTest.java b/validator/src/test/java/org/mustangproject/validator/LibraryTest.java index ed2b5b1a..06188838 100644 --- a/validator/src/test/java/org/mustangproject/validator/LibraryTest.java +++ b/validator/src/test/java/org/mustangproject/validator/LibraryTest.java @@ -135,6 +135,24 @@ public class LibraryTest extends ResourceCase { assertThat(res).valueByXPath("/validation/summary/@status") .isEqualTo("valid"); } + public void testPDFA3Exporter() { + // testout-MustangGnuaccountingBeispielRE-20170509_505newEdge.pdf was a A3 file + // already in import (MustangGnuaccountingBeispielRE-20170509_505PDFA3.pdf), + // so it's important to check that we did not screw anythig up in that scenario + + File tempFile = new File("../library/target/testout-MustangGnuaccountingBeispielRE-20170509_505newEdge.pdf"); + assertTrue(tempFile.exists()); + ZUGFeRDValidator zfv = new ZUGFeRDValidator(); + + String res = zfv.validate(tempFile.getAbsolutePath()); + assertThat(res).valueByXPath("/validation/pdf/summary/@status") + .isEqualTo("valid"); + assertThat(res).valueByXPath("/validation/xml/summary/@status") + .isEqualTo("valid"); + assertThat(res).valueByXPath("/validation/summary/@status") + .isEqualTo("valid"); + } + /** * automatically test the xrechnung */