ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Events Request] Table 39 "Purchase 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);

    GetPurchHeader();
    if PurchHeader."Posting Date" <> 0D then
        exit(PurchHeader."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: 56679.

JesperSchulz avatar May 16 '23 15:05 JesperSchulz