Merge pull request #856 from langfr/issue/MissingFaxData

Read contact´s fax number.
This commit is contained in:
Jochen Staerk
2025-06-26 10:29:39 +02:00
committed by GitHub
4 changed files with 19 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ public class UBLTest extends ResourceCase {
assertFalse(hasExceptions);
assertEquals(new BigDecimal("10000.0"), invoice.getTotalPrepaidAmount());
assertEquals("4621231", invoice.getSender().getContact().getFax());
}
}

View File

@@ -602,6 +602,8 @@ public class ZF2PushTest extends TestCase {
assertEquals("Verwendungszweck", i.getPaymentReference());
assertEquals("Rechnung", i.getDocumentName());
assertEquals("++49555123456",i.getRecipient().getContact().getFax());
} catch (XPathExpressionException e) {
fail("XPathExpressionException should not be raised");
} catch (ParseException e) {

View File

@@ -40,6 +40,7 @@
<cac:Contact>
<cbc:Name>M. Meier Handwerk GbR</cbc:Name>
<cbc:Telephone>010/12345</cbc:Telephone>
<cbc:Telefax>4621231</cbc:Telefax>
<cbc:ElectronicMail>info@m-meier.de</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>