ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 13 Gen. Jnl.-Post Batch Event - Prevent Counts for GuiAllowed()

Open krpr-navax opened this issue 5 years ago • 1 comments

In #13724 my request to make codeunit 13 "Gen. Jnl.-Post Batch" usable in background processes was granted. However, not all necessary changes were made and the missing changes have a significant negative impact on the performance.

As I can see, the NumberOfRecords is now used in a telemetry function. Up until now the record counts were only used in the progress dialog and therefore it was not necessary to calculated these values if the progress dialog ist already disabled.

We therefore require the possibility to prevent these counts to avoid (in our case) unneccessary calculations with signficant performance impact. Therefore please add the following two integration events:

  • local procedure OnProcessLinesOnBeforeCountNoOfRecords(var GenJnlLine: Record "Gen. Journal Line"; var NoOfRecords: Integer; var IsHandled: Boolean) image

  • local procedure OnCheckAndCopyBalancingDataOnBeforeCountGenJnlLine(var GenJnlLine4: Record "Gen. Journal Line"; var JnlLineTotalQty: Integer; var IsHandled: Boolean) image

krpr-navax avatar Oct 25 '21 14:10 krpr-navax

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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Nov 10 '21 09:11 JesperSchulz