ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 407 (Adjust Gen. Journal Balance): OnBeforeInsertGenJournalLine

Open ekesteloot opened this issue 7 years ago • 1 comments

Codeunit 407 (Adjust Gen. Journal Balance)

Integration Event Definition:

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertGenJournalLine(var GenJournalLine: Record "Gen. Journal Line"; GenJournalLine2: Record "Gen. Journal Line"; PrevGenJournalLine2: Record "Gen. Journal Line")
begin
end;

Invocation in InsertCorrectionLines function:

"Recurring Frequency" := PrevGenJnlLine2."Recurring Frequency";
"Posting No. Series" := PrevGenJnlLine2."Posting No. Series";
OnBeforeInsertGenJournalLine(NewGenJnlLine,GenJnlLine2,PrevGenJnlLine2);
if TempCurrTotalBuffer."Total Amount (LCY)" <> 0 then
    Insert;

This will permit us to set some custom fields during this process.

ekesteloot avatar Nov 20 '19 01:11 ekesteloot

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 25 '19 08:11 bc-ghost