ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] table 99000829 "Planning Component" - Unify "Expected Quantity" Validation event

Open aobsgit opened this issue 4 years ago • 1 comments

Hi

Could you please unify validation of "Expected Quantity" field into a function with IsHandled pattern event similar to table 5407 "Prod. Order Component"

Thank you

OLD CODE

Validate("Expected Quantity", Quantity * PlanningNeeds);

NEW CODE

UpdateExpectedQuantity();
.
.
.
local procedure UpdateExpectedQuantity()
var
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeUpdateExpectedQuantity(Rec, IsHandled);
    if IsHandled then
        exit;

    Validate("Expected Quantity", Quantity * ProdOrderNeeds());
end;

aobsgit avatar May 03 '22 12:05 aobsgit

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 05 '22 17:05 JesperSchulz