ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 22 "Item Jnl.-Post Line" - OnBeforeSetupSplitJnlLine #11615 wrong parameter

Open SteinleMossFeldhaus opened this issue 5 years ago • 2 comments

Please see #11615 - the "CalledFromAdjustment: Boolean" parameter is missing. Instead there is now a "var TempTrackingSpecification: Record "Tracking Specification" temporary" parameter that is not needed.

From

[IntegrationEvent(false, false)]
local procedure OnBeforeSetupSplitJnlLine(var ItemJnlLine2: Record "Item Journal Line"; TrackingSpecExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary)
begin
end;

To

[IntegrationEvent(false, false)]
local procedure OnBeforeSetupSplitJnlLine(var ItemJnlLine2: Record "Item Journal Line"; TrackingSpecExists: Boolean; CalledFromAdjustment: Boolean)
begin
end;

There doesn't seem to be another Issue for that event, so there shouldn't be a problem if you would fix it. Thanks

SteinleMossFeldhaus avatar May 10 '21 11:05 SteinleMossFeldhaus

The event you want is called OnBeforeSetupSplitJnlLineProcedure, we couldn't implement it as OnBeforeSetupSplitJnlLine, because an event with that name has already existed before in the codeunit.

Stepanenko-Vadim avatar May 13 '21 07:05 Stepanenko-Vadim

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 May 14 '21 05:05 JesperSchulz