ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Change Request] Codeunit 5923 "Service-Quote to Order" - OnBeforeServOrderLineInsert

Open gretanorv opened this issue 4 years ago • 1 comments

Is it possible to have the parameter IsHandled added to the event OnBeforeServOrderLineInsert?

Original:

OnBeforeServOrderLineInsert(ServOrderLine2, ServOrderLine, ServOrderHeader);
ServOrderLine2.Insert();

[IntegrationEvent(false, false)]
local procedure OnBeforeServOrderLineInsert(var ServiceOrderLine2: Record "Service Line"; ServiceOrderLine: Record "Service Line"; ServOrderHeader: Record "Service Header")
begin
end;

Change:

IsHandled := false; // <-- ADDED
OnBeforeServOrderLineInsert(ServOrderLine2, ServOrderLine, ServOrderHeader, IsHandled); // <-- ADDED
if not IsHandled then // <-- ADDED
    ServOrderLine2.Insert();

[IntegrationEvent(false, false)]
local procedure OnBeforeServOrderLineInsert(var ServiceOrderLine2: Record "Service Line"; ServiceOrderLine: Record "Service Line"; ServOrderHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

gretanorv avatar Aug 16 '22 09:08 gretanorv

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.

Build ID: 46955.

JesperSchulz avatar Sep 27 '22 17:09 JesperSchulz