DespatchAdviceID

This commit is contained in:
jstaerk
2022-03-21 15:30:24 +01:00
parent 58b13598b3
commit 3ee042df8a
5 changed files with 41 additions and 10 deletions

View File

@@ -257,6 +257,11 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IExportableTra
return "AB321";
}
@Override
public String getDespatchAdviceReferencedDocumentID() {
return "123";
}
/**
* Create the test case
*
@@ -311,6 +316,8 @@ public class ZF2EdgeTest extends MustangReaderTestCase implements IExportableTra
assertTrue(resultXML.contains("<ram:DueDateDateTime>"));
assertFalse(resultXML.contains("EUR"));
assertTrue(resultXML.contains("USD"));//currency should be USD, test for #150
assertTrue(resultXML.contains("<ram:DespatchAdviceReferencedDocument>"));
assertTrue(resultXML.contains("<ram:IssuerAssignedID>123</ram:IssuerAssignedID>"));
// Reading ZUGFeRD
assertEquals("496.00", zi.getAmount());