ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5093 Opportunity Entry OnBeforeCheckStatus
Please add an Event OnBeforeCheckStatus to procedure CheckStatus
procedure CheckStatus()
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeCheckStatus(Rec, IsHandled); <--- NEW EVENT
if IsHandled then
exit;
if not ("Action Taken" in ["Action Taken"::Won, "Action Taken"::Lost]) then
Error(Text011);
if "Close Opportunity Code" = '' then
ErrorMessage(FieldCaption("Close Opportunity Code"));
if "Date of Change" = 0D then
ErrorMessage(FieldCaption("Date of Change"));
if "Action Taken" = "Action Taken"::Won then
if "Calcd. Current Value (LCY)" <= 0 then
Error(Text012);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckStatus(var OpportunityEntry: Record "Opportunity Entry"; var IsHandled: Boolean)
begin
end;
Thank You!
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.