Codeunit 30398 Shpfy Comp. By Tax Id

Shopify Connector, Microsoft.Integration.Shopify

Source AL, 101 lines

src/Apps/W1/Shopify/App/src/Companies/Codeunits/ShpfyCompByTaxId.Codeunit.allines 13 to 28 of 101, Copyright (c) Microsoft Corporation. MIT

codeunit 30398 "Shpfy Comp. By Tax Id" implements "Shpfy ICompany Mapping", "Shpfy IFind Company Mapping"{    Access = Internal;    internal procedure DoMapping(CompanyId: BigInteger; ShopCode: Code[20]; TemplateCode: Code[20]; AllowCreate: Boolean): Code[20]    var        ShopifyCompany: Record "Shpfy Company";    begin        if ShopifyCompany.Get(CompanyId) then begin            if not IsNullGuid(ShopifyCompany."Customer SystemId") then begin                ShopifyCompany.CalcFields("Customer No.");                if ShopifyCompany."Customer No." = '' then begin                    Clear(ShopifyCompany."Customer SystemId");                    ShopifyCompany.Modify(true);                end else                    exit(ShopifyCompany."Customer No.");

All 101 lines

Procedures 2

ProcedureVersions
internal DoMapping(CompanyId: BigInteger; ShopCode: Code[20]; TemplateCode: Code[20]; AllowCreate: Boolean): Code[20]new in 26
internal FindMapping(var ShopifyCompany: Record "Shpfy Company"; var TempShopifyCustomer: Record "Shpfy Customer" temporary): Booleannew in 26