From 19620a4cd64fecec621360983d7b8181db373d1a Mon Sep 17 00:00:00 2001 From: Christian Rodriguez Benthake Date: Thu, 13 Jul 2023 15:40:52 +0200 Subject: [PATCH] Add tests for BT-89 and BT-90 --- tests/zugferd211/Tests/BuilderTest.php | 2 ++ tests/zugferd211/Tests/zugferd_2p1_XRECHNUNG_Extended.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/zugferd211/Tests/BuilderTest.php b/tests/zugferd211/Tests/BuilderTest.php index 6f19323f..e7f57017 100644 --- a/tests/zugferd211/Tests/BuilderTest.php +++ b/tests/zugferd211/Tests/BuilderTest.php @@ -332,6 +332,7 @@ public function testBuildXRechnungExtendedExample(): void $invoice->supplyChainTradeTransaction->applicableHeaderTradeDelivery->deliveryNoteReferencedDocument->formattedIssueDateTime = FormattedDateTime::create('102', '20180305'); $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement = new HeaderTradeSettlement(); + $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->creditorReferenceID = 'TEST1234'; $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->paymentReference = '421102'; $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->currency = 'EUR'; $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->payeeTradeParty = $sellerTradeParty; @@ -370,6 +371,7 @@ public function testBuildXRechnungExtendedExample(): void $headerTax2->rateApplicablePercent = '19.00'; $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->specifiedTradePaymentTerms[] = $paymentTerms = new TradePaymentTerms(); + $paymentTerms->directDebitMandateID = 'Mandate Reference'; $paymentTerms->description = 'Zahlbar innerhalb 30 Tagen netto bis 04.04.2018, 3% Skonto innerhalb 10 Tagen bis 15.03.2018'; $invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->specifiedTradeSettlementHeaderMonetarySummation = $summation = new TradeSettlementHeaderMonetarySummation(); diff --git a/tests/zugferd211/Tests/zugferd_2p1_XRECHNUNG_Extended.xml b/tests/zugferd211/Tests/zugferd_2p1_XRECHNUNG_Extended.xml index f6346496..481321ab 100644 --- a/tests/zugferd211/Tests/zugferd_2p1_XRECHNUNG_Extended.xml +++ b/tests/zugferd211/Tests/zugferd_2p1_XRECHNUNG_Extended.xml @@ -266,6 +266,7 @@ Handelsregisternummer: H A 123 + TEST1234 421102 EUR @@ -330,6 +331,7 @@ Handelsregisternummer: H A 123 Zahlbar innerhalb 30 Tagen netto bis 04.04.2018, 3% Skonto innerhalb 10 Tagen bis 15.03.2018 + Mandate Reference 465.00