Codeunit 24 Inventory Setup

Base Application, Microsoft.Inventory.Setup

Source AL, 53 lines

src/Layers/W1/BaseApp/Inventory/Setup/InventorySetup.Codeunit.allines 7 to 22 of 53, Copyright (c) Microsoft Corporation. MIT

codeunit 24 "Inventory Setup"{    SingleInstance = true;    var        InventorySetup: Record "Inventory Setup";        RecordHasBeenRead: Boolean;        RecordWasReadTime: DateTime;    internal procedure GetSetup(var NewInventorySetup: Record "Inventory Setup")    begin        if RecordWasReadTime = 0DT then            RecordWasReadTime := CurrentDateTime(); // because time calculations not allowed when 0DT        if not RecordHasBeenRead or (CurrentDateTime() > RecordWasReadTime + 60000) then begin            InventorySetup.Get();            RecordHasBeenRead := true;

All 53 lines

Procedures 1

ProcedureVersions
internal GetSetup(var NewInventorySetup: Record "Inventory Setup")new in 26