Skip to content

Commit 1ce8e42

Browse files
committed
Testing Due Date without Payment Terms but really this time
1 parent ddb673e commit 1ce8e42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Apps/DE/EDocumentDE/test/src/ZUGFeRDXMLDocumentTests.Codeunit.al

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ codeunit 13922 "ZUGFeRD XML Document Tests"
199199

200200
// [GIVEN] Create and Post Sales Invoice without Payment Terms.
201201
SalesHeader.Get("Sales Document Type"::Invoice, CreateSalesDocumentWithLine("Sales Document Type"::Invoice, Enum::"Sales Line Type"::Item, false));
202+
SalesHeader."Payment Terms Code" := '';
203+
SalesHeader.Modify();
202204
SalesInvoiceHeader.Get(LibrarySales.PostSalesDocument(SalesHeader, true, true));
203205

204206
// [WHEN] Export ZUGFeRD Electronic Document.
@@ -478,6 +480,8 @@ codeunit 13922 "ZUGFeRD XML Document Tests"
478480

479481
// [GIVEN] Create and Post Credit Memo without Payment Terms.
480482
SalesHeader.Get("Sales Document Type"::"Credit Memo", CreateSalesDocumentWithLine("Sales Document Type"::"Credit Memo", Enum::"Sales Line Type"::Item, false));
483+
SalesHeader."Payment Terms Code" := '';
484+
SalesHeader.Modify();
481485
SalesCrMemoHeader.Get(LibrarySales.PostSalesDocument(SalesHeader, true, true));
482486

483487
// [WHEN] Export ZUGFeRD Electronic Document.

0 commit comments

Comments
 (0)