From a888b3c25f33eb4b9f909df801ed387c31f07455 Mon Sep 17 00:00:00 2001 From: jstaerk Date: Thu, 24 Mar 2022 13:08:59 +0100 Subject: [PATCH] added a XR cash discount test, or at least an according manual field. Updated history. --- History.md | 4 +++- library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/History.md b/History.md index 8cd80acb..961abaa4 100644 --- a/History.md +++ b/History.md @@ -1,7 +1,7 @@ 2.4.1 ======= -DespatchAdviceReferencedDocument/IssuerAssignedID +DespatchAdviceReferencedDocument/IssuerAssignedID #253 - allow to specify legalorganisation ID+scheme ID - allow to specify additional files to be attached in command line @@ -13,6 +13,8 @@ DespatchAdviceReferencedDocument/IssuerAssignedID - allow to specify a tradeparties' legalorganisation i.e. allow to write Factur-X invoices to french authorities - allow to add attachments in CLI - replaced jargs with apache commons cli as command line parser +- nicer XML https://github.com/ZUGFeRD/mustangproject/issues/266 thanks to weclapp-dev +- XR now also tests paymenttermdescription(#238) 2.4.0 ======= diff --git a/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java b/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java index a584e8dc..2ead1d9b 100644 --- a/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java +++ b/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java @@ -86,7 +86,8 @@ public class XRTest extends TestCase { .setRecipient(new TradeParty("Franz Müller", "teststr.12", "55232", "Entenhausen", "DE")) .setReferenceNumber("991-01484-64")//leitweg-id // not using any VAT, this is also a test of zero-rated goods: - .setNumber(number).addItem(new Item(new Product("Testprodukt", "", "C62", BigDecimal.ZERO), amount, new BigDecimal(1.0))) + .setNumber(number).setPaymentTermDescription("#SKONTO#TAGE=14#PROZENT=2.25#\n" + + "#SKONTO#TAGE=28#PROZENT=1.00#\n").addItem(new Item(new Product("Testprodukt", "", "C62", BigDecimal.ZERO), amount, new BigDecimal(1.0))) .embedFileInXML(fe1).embedFileInXML(fe2);