invoiceimporter to parse quantities
This commit is contained in:
@@ -40,7 +40,7 @@ import java.util.List;
|
||||
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
public class UXTest extends TestCase {
|
||||
final String TARGET_PDF = "./target/testout-ZF2new.pdf";
|
||||
final String TARGET_PDF = "./target/testout-UX.pdf";
|
||||
public void testShortExport() {
|
||||
|
||||
// the writing part
|
||||
|
||||
@@ -260,7 +260,7 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IExportableTra
|
||||
// the writing part
|
||||
|
||||
try (InputStream SOURCE_PDF = this.getClass()
|
||||
.getResourceAsStream("/MustangGnuaccountingBeispielRE-20170509_505.pdf");
|
||||
.getResourceAsStream("/MustangGnuaccountingBeispielRE-20170509_505blanko.pdf");
|
||||
|
||||
ZUGFeRDExporterFromA1 ze = new ZUGFeRDExporterFromA1().setProducer("My Application")
|
||||
.setCreator(System.getProperty("user.name")).setZUGFeRDVersion(2).ignorePDFAErrors()
|
||||
|
||||
@@ -43,8 +43,9 @@ public class ZF2ZInvoiceImporterTest extends TestCase {
|
||||
// Reading ZUGFeRD
|
||||
assertEquals("Bei Spiel GmbH", invoice.getOwnOrganisationName());
|
||||
assertEquals(3, invoice.getZFItems().length);
|
||||
/* assertEquals("160.0000", invoice.getZFItems()[0].getPrice().toString());
|
||||
assertEquals("400.0000", invoice.getZFItems()[1].getQuantity().toString());
|
||||
|
||||
/* assertEquals("160.0000", invoice.getZFItems()[0].getPrice().toString());
|
||||
assertEquals("Heiße Luft pro Liter", invoice.getZFItems()[2].getProduct().getName());
|
||||
assertEquals("7", invoice.getZFItems()[0].getProduct().getVATPercent().toString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user