ALAppExtensions
ALAppExtensions copied to clipboard
[Event Change Request] Codeunit 5923 "Service-Quote to Order" - OnBeforeServOrderLineInsert
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;
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.