ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5093 Opportunity Entry OnCheckStatus2OnAfterValidateStage
Please add an Event OnCheckStatus2OnAfterValidateStage to procedure CheckStatus2
procedure CheckStatus2()
var
IsHandled: Boolean;
begin
if "Action Type" = "Action Type"::" " then
Error(Text006, "Sales Cycle Code");
if EntryExists then
if "Date of Change" < PreviousDateOfChange then
Error(Text007);
if "Date of Change" = 0D then
ErrorMessage(FieldCaption("Date of Change"));
ValidateStage;
IsHandled := false;
OnCheckStatus2OnAfterValidateStage(Rec, IsHandled); <--- NEW EVENT
if IsHandled then
exit;
if "Estimated Value (LCY)" <= 0 then
Error(Text008, FieldCaption("Estimated Value (LCY)"));
if "Chances of Success %" <= 0 then
Error(Text008, FieldCaption("Chances of Success %"));
if "Estimated Close Date" = 0D then
ErrorMessage(FieldCaption("Estimated Close Date"));
if "Estimated Close Date" < "Date of Change" then
Error(Text009);
end;
[IntegrationEvent(false, false)]
procedure OnCheckStatus2OnAfterValidateStage(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.