added test for #150

This commit is contained in:
Jochen Stärk
2020-01-26 08:41:45 +01:00
parent f9a936d894
commit 78011366ed
2 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
- support different ship to address
- allow for diffent namespace prefixes #140
- include exemption reason if doing intra community supply
- allow different currencies also for ZF2 (#150)
1.7.5
=====

View File

@@ -190,7 +190,7 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IZUGFeRDExport
@Override
public String getCurrency() {
return "EUR";
return "USD";
}
@Override
@@ -285,6 +285,8 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IZUGFeRDExport
assertTrue(zi.getUTF8().contains("<ram:IBANID>DE540815</ram:IBANID>"));
assertTrue(zi.getUTF8().contains("<ram:DirectDebitMandateID>DE99XX12345</ram:DirectDebitMandateID>"));
assertFalse(zi.getUTF8().contains("<ram:DueDateDateTime>"));
assertFalse(zi.getUTF8().contains("EUR"));
assertTrue(zi.getUTF8().contains("USD"));//currency should be USD, test for #150
// Reading ZUGFeRD
assertEquals("496.00", zi.getAmount());