From 3b8bb311e17ceb897aebf0f59b82012616b229b0 Mon Sep 17 00:00:00 2001 From: djukicmilica Date: Mon, 6 Jul 2026 13:59:13 +0200 Subject: [PATCH 1/2] test updated --- src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al b/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al index dff1d5e0b2..c63fc7d298 100644 --- a/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al +++ b/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al @@ -47,6 +47,7 @@ codeunit 139561 "Shpfy Initialize Test" internal procedure CreateShop(): Record "Shpfy Shop" var + GeneralPostingSetup: Record "General Posting Setup"; RefundGLAccount: Record "G/L Account"; Shop: Record "Shpfy Shop"; VATPostingSetup: Record "VAT Posting Setup"; @@ -65,6 +66,8 @@ codeunit 139561 "Shpfy Initialize Test" Code := CopyStr(Any.AlphabeticText(MaxStrLen(Code)), 1, MaxStrLen(Code)); + LibraryERM.CreateGeneralPostingSetupInvt(GeneralPostingSetup); + LibraryERM.CreateVATPostingSetupWithAccounts(VATPostingSetup, VATPostingSetup."VAT Calculation Type"::"Normal VAT", LibraryRandom.RandDecInDecimalRange(10, 25, 0)); From df54ff6c062b3cb8db287e8d3307df79c4c0bd94 Mon Sep 17 00:00:00 2001 From: djukicmilica Date: Tue, 7 Jul 2026 11:07:08 +0200 Subject: [PATCH 2/2] new tests --- .../W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al b/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al index c63fc7d298..e1716a3f8a 100644 --- a/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al +++ b/src/Apps/W1/Shopify/Test/Base/ShpfyInitializeTest.Codeunit.al @@ -15,7 +15,9 @@ using Microsoft.Foundation.Enums; using Microsoft.Foundation.NoSeries; using Microsoft.Integration.Shopify; using Microsoft.Inventory.Item; +using Microsoft.Inventory.Setup; using Microsoft.Sales.Customer; +using Microsoft.Sales.Setup; using System.TestLibraries.Utilities; /// @@ -34,6 +36,7 @@ codeunit 139561 "Shpfy Initialize Test" CommunicationMgt: Codeunit "Shpfy Communication Mgt."; LibraryERM: Codeunit "Library - ERM"; LibraryRandom: Codeunit "Library - Random"; + LibraryUtility: Codeunit "Library - Utility"; ShopifyAccessToken: Text; #pragma warning disable AA0240 DummyCustomerEmailLbl: Label 'dummy@customer.com'; @@ -48,7 +51,9 @@ codeunit 139561 "Shpfy Initialize Test" internal procedure CreateShop(): Record "Shpfy Shop" var GeneralPostingSetup: Record "General Posting Setup"; + InventorySetup: Record "Inventory Setup"; RefundGLAccount: Record "G/L Account"; + SalesReceivablesSetup: Record "Sales & Receivables Setup"; Shop: Record "Shpfy Shop"; VATPostingSetup: Record "VAT Posting Setup"; ShpfyInitializeTest: Codeunit "Shpfy Initialize Test"; @@ -98,6 +103,10 @@ codeunit 139561 "Shpfy Initialize Test" Commit(); CommunicationMgt.SetShop(Shop); CommunicationMgt.SetTestInProgress(true); + LibraryUtility.UpdateSetupNoSeriesCode( + DATABASE::"Sales & Receivables Setup", SalesReceivablesSetup.FieldNo("Customer Nos.")); + LibraryUtility.UpdateSetupNoSeriesCode( + DATABASE::"Inventory Setup", InventorySetup.FieldNo("Item Nos.")); CreateDummyCustomer(CustomerTemplateCode); CreateDummyItem(ItemTemplateCode); if not TempShop.Get(Code) then begin