ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5902 "Service Line" - OnBeforeMaxQtyToConsume
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;
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.