Codeunit 5858 Invt. Ledger Invt. Source

Base Application, Microsoft.Inventory

Source AL, 75 lines

src/Layers/W1/BaseApp/Inventory/InvtLedgerInvtSource.Codeunit.allines 13 to 28 of 75, Copyright (c) Microsoft Corporation. MIT

codeunit 5858 "Invt. Ledger Invt. Source"{    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Invt. Ledger Source Mgt.", OnGetSourceDescription, '', false, false)]    local procedure OnGetSourceDescription(SourceType: Enum "Analysis Source Type"; SourceNo: Code[20]; var SourceDescription: Text)    var        Item: Record Item;    begin        if SourceNo = '' then            exit;        if SourceType = SourceType::Item then begin            Item.SetLoadFields(Description);            if Item.Get(SourceNo) then                SourceDescription := Item.Description;        end;    end;

All 75 lines