Codeunit 6244 E-Doc. Hist. Line Data Loader

E-Document Core, Microsoft.eServices.EDocument.Processing.Import.Purchase

Source AL, 197 lines

src/Apps/W1/EDocument/App/src/Processing/Import/Purchase/History/EDocHistLineDataLoader.Codeunit.allines 12 to 27 of 197, Copyright (c) Microsoft Corporation. MIT

codeunit 6244 "E-Doc. Hist. Line Data Loader"{    Access = Internal;    InherentPermissions = X;    InherentEntitlements = X;    var        TotalLoaded: Integer;        HistoricalDataLoadEventTok: Label 'Historical Data Load', Locked = true;    /// <summary>    /// Loads up to 5000 historical posted purchase invoice lines for the draft line's vendor    /// into a temporary table, prioritized by relevance to the selected draft line.    /// Priority: vendor matching lines first (product code exact, description exact, and LLM-based    /// similar descriptions), then any remaining lines for the same vendor.    /// The search is scoped to the draft's vendor; no cross-vendor history is loaded.

All 197 lines

Public procedures 2 in 29

LoadHistoricalLines(var TempPurchInvLine: Record "Purch. Inv. Line" temporary; VendorNo: Code[20]; ProductCode: Text[100]; Description: Text[100])new in 29
MaxHistoricalRecords(): Integernew in 29