also allow item allowances

This commit is contained in:
jstaerk
2025-01-10 10:39:12 +01:00
parent b4aa733170
commit 6f63c85b14
3 changed files with 16 additions and 30 deletions

View File

@@ -40,7 +40,6 @@ import java.nio.file.Paths;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
@@ -104,31 +103,6 @@ public class ZF2ZInvoiceImporterTest extends ResourceCase {
}
public void testTheInvoiceImport() {
ZUGFeRDInvoiceImporter zii = new ZUGFeRDInvoiceImporter("C:\\Users\\jstaerk\\workspace\\XMLExamples\\zfdiverses\\20250108_\\xmlDieWirLesenSollten.xml");
boolean hasExceptions = false;
Invoice invoice = null;
try {
invoice = zii.extractInvoice();
} catch (XPathExpressionException | ParseException e) {
hasExceptions = true;
}
assertFalse(hasExceptions);
// Reading ZUGFeRD
TransactionCalculator tc = new TransactionCalculator(invoice);
assertEquals(new BigDecimal("0.00"), tc.getDuePayable());
assertEquals(new BigDecimal("0.00"), tc.getGrandTotal());
// name street location zip country, contact name phone email, total amount
}
public void testInvoiceImportUBL() {