test pdf-a/3 import generated invoice
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user