microsoft / microsoft/ALAppExtensions

[Event Request] Codeunit 181 "Copy Gen. Journal Mgt."

Open
#30,403 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

missing-info
Dominant language
AL
Stars
988
Forks
692
Avg merge
49m
Merged PRs (30d)
1

Description

Why do you need this change?

Please add a new event in the ShowFinishMessage to have a possibility to ignore the FinishMessage and run custom functionality.

Describe the request
local procedure ShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters")
   var
       GenJournalBatch: Record "Gen. Journal Batch";
       ConfirmManagement: Codeunit "Confirm Management";
       GenJnlManagement: Codeunit GenJnlManagement;
       IsHandled: Boolean;
   begin
       // >>>
       IsHandled := false;
       OnBeforeShowFinishMessage(LineCount, CopyGenJournalParameters);
       if IsHandled then
           exit();
       // <<<

       if ConfirmManagement.GetResponse(StrSubstNo(CopiedLinesTxt, LineCount), false) then begin
           GenJournalBatch.Get(CopyGenJournalParameters."Journal Template Name", CopyGenJournalParameters."Journal Batch Name");
           GenJnlManagement.TemplateSelectionFromBatch(GenJournalBatch);
       end;
   end;
[IntegrationEvent(false, false)]
    local procedure OnBeforeShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var IsHandled: Boolean)
    begin
    end;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Codeunit 181, "Copy Gen. Journal Mgt.", at the ShowFinishMessage procedure and review the requested OnBeforeShowFinishMessage event shape. Done means the event permits subscribers to skip the finish message and run custom functionality; note that this repository says application contributions have moved to BCApps.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.