ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Events Request] Table 37 "Sales Line" procedure GetDate - OnBeforeGetDate

Open ACJStopka opened this issue 3 years ago • 1 comments

procedure GetDate() ResultDate: Date
var
    IsHandled: Boolean; 
begin
    IsHandled := false;
    OnBeforeGetDate(ResultDate, IsHandled);
    if IsHandled then
        exit(ResultDate);

    GetSalesHeader();
    if SalesHeader."Posting Date" <> 0D then
        exit(SalesHeader."Posting Date");
    exit(WorkDate());
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeGetDate(var ResultDate: Date; var IsHandled: Boolean)
begin
end;

ACJStopka avatar Mar 20 '23 08:03 ACJStopka

Availability update: We will publish a fix for this issue in the next update for release 22.

Build ID to track: 56629.

JesperSchulz avatar May 15 '23 14:05 JesperSchulz