Codeunit 5469 Library API - General Journal

Base Application, Microsoft.Finance.GeneralLedger.Journal

Source AL, 157 lines

src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/LibraryAPIGeneralJournal.Codeunit.allines 19 to 34 of 157, Copyright (c) Microsoft Corporation. MIT

codeunit 5469 "Library API - General Journal"{    trigger OnRun()    begin    end;    var        GenJnlManagement: Codeunit GenJnlManagement;    /// <summary>    /// Initializes a general journal line with proper line number, document numbers, and default values based on existing lines.    /// Replicates journal page behavior for API-driven journal line creation with appropriate field inheritance.    /// </summary>    /// <param name="GenJournalLine">Journal line record to initialize with template and batch already set</param>    /// <param name="LineNo">Line number to assign to the journal line</param>

All 157 lines

Public procedures 3 in 29

InitializeLine(var GenJournalLine: Record "Gen. Journal Line"; LineNo: Integer; DocumentNo: Code[20]; ExternalDocumentNo: Code[35])17-29
EnsureGenJnlBatchExists(TemplateNameTxt: Text[10]; BatchNameTxt: Text[10])17-29
GetBatchNameFromId(JournalBatchId: Guid): Code[10]17-29