Codeunit 181 Copy Gen. Journal Mgt.

Base Application, Microsoft.Finance.GeneralLedger.Journal

Source AL, 287 lines

src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/CopyGenJournalMgt.Codeunit.allines 22 to 37 of 287, Copyright (c) Microsoft Corporation. MIT

codeunit 181 "Copy Gen. Journal Mgt."{    trigger OnRun()    begin    end;    var        CopiedLinesTxt: Label '%1 posted general journal lines was copied to General Journal.\\Do you want to open target general journal?', Comment = '%1 - number of lines';        CanBeCopiedErr: Label 'You cannot copy the posted general journal lines with G/L register number %1 because they contain customer, vendor, or employee ledger entries that were posted and applied in the same G/L register.', Comment = '%1 = "G/L Register" number';        SkipValidationConfirmQst: Label 'No GL Register found with no. %1, do you still want to copy and skip validation?', Comment = 'Confirmation message when no GL Register is found for the posted lines being copied.';    /// <summary>    /// Copies posted general journal lines to an active general journal batch for reprocessing or correction.    /// Validates posted lines can be copied and prompts user for copy parameters before creating new journal lines.    /// </summary>    /// <param name="PostedGenJournalLine">Posted journal lines to copy (multiple lines supported via filters)</param>

All 287 lines

Events 5 in 29

[IntegrationEvent] OnBeforeInsertGenJournalLine(var PostedGenJournalLine: Record "Posted Gen. Journal Line"; var CopyGenJournalParameters: Record "Copy Gen. Journal Parameters")17-29
[IntegrationEvent] OnAfterInsertGenJournalLine(PostedGenJournalLine: Record "Posted Gen. Journal Line"; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var GenJournalLine: Record "Gen. Journal Line")17-29
[IntegrationEvent] OnAfterGetCopyParameters(var CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var Result: Boolean)17-29
[IntegrationEvent] OnAfterCheckIfCanBeCopied(PostedGenJournalLine: Record "Posted Gen. Journal Line")new in 18
[IntegrationEvent] OnCheckIfCanBeCopiedOnBeforeSkipValidationOrError(PostedGenJournalLine: Record "Posted Gen. Journal Line"; var ConfirmHandled: Boolean; var ConfirmResponse: Boolean)new in 28

Public procedures 2 in 29

CopyToGenJournal(var PostedGenJournalLine: Record "Posted Gen. Journal Line")17-29
CopyGLRegister(var SrcPostedGenJournalLine: Record "Posted Gen. Journal Line")17-29

Changes 1 in 28

List17181920212223242526272829
Events11
[IntegrationEvent] OnCheckIfCanBeCopiedOnBeforeSkipValidationOrError(PostedGenJournalLine: Record "Posted Gen. Journal Line"; var ConfirmHandled: Boolean; var ConfirmResponse: Boolean)new in 28
added

All 2 changes in 17-29