From 176311f7fb0dd2590fd391470829f1e494ca52b6 Mon Sep 17 00:00:00 2001 From: Onat Buyukakkus <55088871+onbuyuka@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:23:31 +0100 Subject: [PATCH] Test failure in UnitTestUpdateTaxRegistrationIdForVATRegistrationNo for Belgian customers --- .../Shopify/Test/Companies/ShpfyTaxIdMappingTest.Codeunit.al | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Apps/W1/Shopify/Test/Companies/ShpfyTaxIdMappingTest.Codeunit.al b/src/Apps/W1/Shopify/Test/Companies/ShpfyTaxIdMappingTest.Codeunit.al index 23cd3bb2e5..659af6db4f 100644 --- a/src/Apps/W1/Shopify/Test/Companies/ShpfyTaxIdMappingTest.Codeunit.al +++ b/src/Apps/W1/Shopify/Test/Companies/ShpfyTaxIdMappingTest.Codeunit.al @@ -171,6 +171,11 @@ codeunit 134246 "Shpfy Tax Id Mapping Test" NewTaxRegistrationId := LibraryERM.GenerateVATRegistrationNo(CompanyInformation."Country/Region Code"); // [GIVEN] Customer with empty VAT Registration No. CreateCustomerWithVATRegNo(Customer, ''); + if CompanyInformation."Country/Region Code" = 'BE' then begin + Customer."Country/Region Code" := 'DE'; // VAT Reg No. not allowed for BE Customers + Customer.Modify(); + NewTaxRegistrationId := LibraryERM.GenerateVATRegistrationNo(Customer."Country/Region Code"); + end; // [GIVEN] TaxRegistrationIdMapping interface is "VAT Registration No." TaxRegistrationIdMapping := Enum::"Shpfy Comp. Tax Id Mapping"::"VAT Registration No.";