Skip to content
42 changes: 42 additions & 0 deletions build/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,48 @@
}
]
},
{
"name": "Shopify Connector BE",
"groups": [
{
"name": "AllExtensions"
},
{
"name": "Financials"
},
{
"name": "FinancialsExtensions"
},
{
"name": "OnPrem"
},
{
"name": "OnPremExtensions"
}
]
},
{
"name": "Shopify Connector BE Test",
"groups": [
{
"name": "AllExtensions"
},
{
"name": "Financials"
},
{
"name": "FinancialsExtensions"
},
{
"name": "OnPrem",
"doNotInstall": true
},
{
"name": "OnPremExtensions",
"doNotInstall": true
}
]
},
{
"name": "Data Archive",
"groups": [
Expand Down
23 changes: 23 additions & 0 deletions build/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,29 @@
],
"owningteam": "\\AI Business Solutions\\Integrations"
},
"Shopify Connector BE": {
"projectPath": "$env:INETROOT\\App\\BCApps\\src\\Apps\\BE\\ShopifyBE\\App",
"dvdFolder": "Applications\\ShopifyBE\\Source",
"skipInstallOnPrem": true,
"hasTranslations": true,
"supportedCountries": "BE",
"runStaticCodeAnalysis": true,
"logLevel": "warning",
"ruleSetPath": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\ruleset.json",
"ruleSetPathMinorRelease": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\minorrelease.ruleset.json",
"owningteam": "\\AI Business Solutions\\Integrations"
},
"Shopify Connector BE Test": {
"projectPath": "$env:INETROOT\\App\\BCApps\\src\\Apps\\BE\\ShopifyBE\\Test",
"dvdFolder": "Applications\\ShopifyBE\\Test",
"supportedCountries": "BE",
"isTest": true,
"runStaticCodeAnalysis": true,
"logLevel": "warning",
"ruleSetPath": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\ruleset.json",
"ruleSetPathMinorRelease": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\minorrelease.ruleset.json",
"owningteam": "\\AI Business Solutions\\Integrations"
},
"Company Hub": {
"projectPath": "$env:INETROOT\\App\\Apps\\W1\\CompanyHub\\app",
"dvdFolder": "Applications\\CompanyHub\\Source",
Expand Down
2 changes: 2 additions & 0 deletions build/projects/Apps BE/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"../../../src/Apps/BE/HybridBCLast_BE/app",
"../../../src/Apps/BE/IntrastatBE/app",
"../../../src/Apps/BE/PEPPOLBE/App",
"../../../src/Apps/BE/ShopifyBE/App",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
Expand Down Expand Up @@ -116,6 +117,7 @@
"../../../src/Tools/Test Framework/Test Stability Tools/Prevent Metadata Updates"
],
"testFolders": [
"../../../src/Apps/BE/ShopifyBE/Test",
"../../../src/Apps/W1/AMCBanking365Fundamentals/test",
"../../../src/Apps/W1/APIV1/test",
"../../../src/Apps/W1/APIV2/test",
Expand Down
Binary file added src/Apps/BE/ShopifyBE/App/ExtensionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions src/Apps/BE/ShopifyBE/App/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"id": "c2d93c78-f87a-4b0e-b71f-570f578d78de",
"name": "Shopify Connector BE",
"publisher": "Microsoft",
"brief": "Belgium localization for the Shopify Connector.",
"description": "Adds Belgium-specific tax identifier mapping to the Shopify Connector so that Belgian B2B companies and customers can be synchronized using the Enterprise No., as required by the Belgian localization.",
"version": "29.0.0.0",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?linkid=2179727",
"url": "https://go.microsoft.com/fwlink/?LinkId=724011",
"logo": "ExtensionLogo.png",
"contextSensitiveHelpUrl": "https://go.microsoft.com/fwlink/?linkid=2179727",
"propagateDependencies": true,
"dependencies": [
{
"id": "ec255f57-31d0-4ca2-b751-f2fa7c745abb",
"name": "Shopify Connector",
"publisher": "Microsoft",
"version": "29.0.0.0"
}
],
"screenshots": [],
"platform": "29.0.0.0",
"idRanges": [
{
"from": 30461,
"to": 30465
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"application": "29.0.0.0",
"target": "OnPrem",
"features": [
"NoImplicitWith",
"TranslationFile"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace Microsoft.Integration.Shopify.BE;

using Microsoft.Integration.Shopify;

enumextension 30461 "Shpfy Comp. Tax Id Mapping BE" extends "Shpfy Comp. Tax Id Mapping"
{
value(30461; "Enterprise No.")
{
Caption = 'Enterprise No.';
Implementation = "Shpfy Tax Registration Id Mapping" = "Shpfy Enterprise No. BE";
}
}
35 changes: 35 additions & 0 deletions src/Apps/BE/ShopifyBE/App/src/ShpfyEnterpriseNoBE.Codeunit.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace Microsoft.Integration.Shopify.BE;

using Microsoft.Integration.Shopify;
using Microsoft.Sales.Customer;

/// <summary>
/// Codeunit Shpfy Enterprise No. BE (ID 30461) implements Interface Shpfy Tax Registration Id Mapping.
/// Maps the Shopify tax registration id to the Belgian Enterprise No. field on the customer,
/// which is the legally required tax identifier for Belgian customers.
/// </summary>
codeunit 30461 "Shpfy Enterprise No. BE" implements "Shpfy Tax Registration Id Mapping"
{
Access = Internal;

procedure GetTaxRegistrationId(var Customer: Record Customer): Text[150]
begin
exit(Customer."Enterprise No.");
end;

procedure SetMappingFiltersForCustomers(var Customer: Record Customer; CompanyLocation: Record "Shpfy Company Location")
begin
Customer.SetRange("Enterprise No.", CompanyLocation."Tax Registration Id");
end;

procedure UpdateTaxRegistrationId(var Customer: Record Customer; NewTaxRegistrationId: Text[150])
begin
Customer.Validate("Enterprise No.", CopyStr(NewTaxRegistrationId, 1, MaxStrLen(Customer."Enterprise No.")));
Customer.Modify(true);
end;
}
13 changes: 13 additions & 0 deletions src/Apps/BE/ShopifyBE/ShopifyBE.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"folders": [
{
"name": "App",
"path": "App"
},
{
"name": "Test",
"path": "Test"
}
],
"settings": {}
}
Binary file added src/Apps/BE/ShopifyBE/Test/ExtensionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions src/Apps/BE/ShopifyBE/Test/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"id": "8bd23d6b-a8c4-449c-a6a0-7f7ebbd71de8",
"name": "Shopify Connector BE Test",
"publisher": "Microsoft",
"brief": "Tests for the Shopify Connector BE extension.",
"description": "Tests for the Belgium localization of the Shopify Connector.",
"version": "29.0.0.0",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?linkid=2179727",
"url": "https://go.microsoft.com/fwlink/?LinkId=724011",
"logo": "ExtensionLogo.png",
"contextSensitiveHelpUrl": "https://go.microsoft.com/fwlink/?linkid=2179727",
"dependencies": [
{
"id": "c2d93c78-f87a-4b0e-b71f-570f578d78de",
"name": "Shopify Connector BE",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "ec255f57-31d0-4ca2-b751-f2fa7c745abb",
"name": "Shopify Connector",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "5d86850b-0d76-4eca-bd7b-951ad998e997",
"name": "Tests-TestLibraries",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "9856ae4f-d1a7-46ef-89bb-6ef056398228",
"name": "System Application Test Library",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "e7320ebb-08b3-4406-b1ec-b4927d3e280b",
"name": "Any",
"publisher": "Microsoft",
"version": "29.0.0.0"
},
{
"id": "dd0be2ea-f733-4d65-bb34-a28f4624fb14",
"name": "Library Assert",
"publisher": "Microsoft",
"version": "29.0.0.0"
}
],
"screenshots": [],
"platform": "29.0.0.0",
"idRanges": [
{
"from": 148710,
"to": 148719
}
],
"target": "OnPrem",
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"application": "29.0.0.0",
"features": [
"TranslationFile"
]
}
Loading
Loading