Codeunit 30272 Shpfy Update Price Source

Shopify Connector, Microsoft.Integration.Shopify

Source AL, 33 lines

src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyUpdatePriceSource.Codeunit.allines 11 to 26 of 33, Copyright (c) Microsoft Corporation. MIT

codeunit 30272 "Shpfy Update Price Source"{    Access = Public;    EventSubscriberInstance = Manual;    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Price Source - Customer", 'OnBeforeGetId', '', true, false)]    local procedure GetId(var PriceSource: Record "Price Source"; var IsHandled: Boolean)    var        Customer: Record Customer;        ShpfyProductPriceCalc: Codeunit "Shpfy Product Price Calc.";    begin        if Customer.Get(PriceSource."Source No.") then            exit;        PriceSource."Currency Code" := ShpfyProductPriceCalc.GetCurrencyCode();        PriceSource."Allow Line Disc." := ShpfyProductPriceCalc.GetAllowLineDisc();

All 33 lines