ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5902 "Service Line" - OnBeforeMaxQtyToConsume

Open andersws opened this issue 5 years ago • 1 comments

Can you please add OnBeforeMaxQtyToConsume to Table 5902 "Service Line" with Decimal ReturnValue in procedure MaxQtyToConsume?

procedure MaxQtyToConsume(): Decimal
// >>>>>>>>>>
var
IsHandled: Boolean;
ReturnValue: Decimal;
begin
    IsHandled := false;
    OnBeforeMaxQtyToConsume(Rec, ReturnValue, IsHandled);        
    if IsHandled then
        exit(ReturnValue);
    // <<<<<<<<<<
    exit(Quantity - "Quantity Shipped");
end;

[IntegrationEvent(false, false)] local procedure OnBeforeMaxQtyToConsume(var ServiceLine: Record "Service Line"; var ReturnValue: Decimal; var IsHandled: Boolean) begin end;

andersws avatar Jul 02 '21 13:07 andersws

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 Jul 08 '21 10:07 JesperSchulz