Codeunit 5859 Invt. Ledger Purchase Source

Base Application, Microsoft.Purchases.History

Source AL, 66 lines

src/Layers/W1/BaseApp/Purchases/History/InvtLedgerPurchaseSource.Codeunit.allines 11 to 26 of 66, Copyright (c) Microsoft Corporation. MIT

codeunit 5859 "Invt. Ledger Purchase 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        Vendor: Record Vendor;    begin        if SourceNo = '' then            exit;        if SourceType = SourceType::Vendor then begin            Vendor.SetLoadFields(Name);            if Vendor.Get(SourceNo) then                SourceDescription := Vendor.Name;        end;    end;

All 66 lines