From ee734b2cd117fca1dac955c79f7b707eafd05bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hartvig=20Gr=C3=B8nbech?= Date: Sat, 21 Feb 2026 09:53:22 +0100 Subject: [PATCH] fix --- .../Test/src/PEPPOL30ManagementTests.Codeunit.al | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Apps/W1/PEPPOL/Test/src/PEPPOL30ManagementTests.Codeunit.al b/src/Apps/W1/PEPPOL/Test/src/PEPPOL30ManagementTests.Codeunit.al index b2f44b36ed..36931d56ed 100644 --- a/src/Apps/W1/PEPPOL/Test/src/PEPPOL30ManagementTests.Codeunit.al +++ b/src/Apps/W1/PEPPOL/Test/src/PEPPOL30ManagementTests.Codeunit.al @@ -1008,7 +1008,13 @@ codeunit 139235 "PEPPOL30 Management Tests" Assert.AreEqual('UNCL4461', PaymentMeansListID, ''); Assert.AreEqual(Format(DummySalesHeader."Due Date", 0, 9), PaymentDueDate, ''); Assert.AreEqual('', PaymentChannelCode, ''); - Assert.AreEqual('', PaymentID, ''); + case true of + // 37350 = PEPPOL 3.0 - Sales NO: NO format sets PaymentID to a KID number + GetFormat().AsInteger() = 37350: + Assert.AreEqual('00000000000', PaymentID, ''); + else + Assert.AreEqual('', PaymentID, ''); + end; Assert.AreEqual('', PrimaryAccountNumberID, ''); Assert.AreEqual('', NetworkID, ''); end; @@ -1182,7 +1188,13 @@ codeunit 139235 "PEPPOL30 Management Tests" Assert.AreEqual('UNCL4461', PaymentMeansListID, ''); Assert.AreEqual(Format(DummySalesHeader."Due Date", 0, 9), PaymentDueDate, ''); Assert.AreEqual('', PaymentChannelCode, ''); - Assert.AreEqual('', PaymentID, ''); + case true of + // 37350 = PEPPOL 3.0 - Sales NO: NO format sets PaymentID to a KID number + GetFormat().AsInteger() = 37350: + Assert.AreEqual('00000000000', PaymentID, ''); + else + Assert.AreEqual('', PaymentID, ''); + end; Assert.AreEqual('', PrimaryAccountNumberID, ''); Assert.AreEqual('', NetworkID, ''); end;