added test for #150
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- support different ship to address
|
- support different ship to address
|
||||||
- allow for diffent namespace prefixes #140
|
- allow for diffent namespace prefixes #140
|
||||||
- include exemption reason if doing intra community supply
|
- include exemption reason if doing intra community supply
|
||||||
|
- allow different currencies also for ZF2 (#150)
|
||||||
|
|
||||||
1.7.5
|
1.7.5
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IZUGFeRDExport
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCurrency() {
|
public String getCurrency() {
|
||||||
return "EUR";
|
return "USD";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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:IBANID>DE540815</ram:IBANID>"));
|
||||||
assertTrue(zi.getUTF8().contains("<ram:DirectDebitMandateID>DE99XX12345</ram:DirectDebitMandateID>"));
|
assertTrue(zi.getUTF8().contains("<ram:DirectDebitMandateID>DE99XX12345</ram:DirectDebitMandateID>"));
|
||||||
assertFalse(zi.getUTF8().contains("<ram:DueDateDateTime>"));
|
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
|
// Reading ZUGFeRD
|
||||||
assertEquals("496.00", zi.getAmount());
|
assertEquals("496.00", zi.getAmount());
|
||||||
|
|||||||
Reference in New Issue
Block a user