ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Page 5510 "Production Journal" - PostingDateOnAfterValidate

Open aobsgit opened this issue 4 years ago • 1 comments

Hi

Could you please add an event

OLD CODE

local procedure PostingDateOnAfterValidate()
begin
    if PostingDate = 0D then
        PostingDate := xPostingDate;

    if PostingDate <> xPostingDate then begin
        ModifyAll("Posting Date", PostingDate);
        xPostingDate := PostingDate;
        CurrPage.Update(false);
    end;
end;

NEW CODE

local procedure PostingDateOnAfterValidate()
var
  IsHandled: Boolean;
begin
    OnBeforePostingDateOnAfterValidate(Rec,PostingDate,xPostingDate,IsHandled)
    if IsHandled then
      exit;

    if PostingDate = 0D then
        PostingDate := xPostingDate;

    if PostingDate <> xPostingDate then begin
        ModifyAll("Posting Date", PostingDate);
        xPostingDate := PostingDate;
        CurrPage.Update(false);
    end;
end;

[IntegrationEvent(false, false)]
local procedure OnBeforePostingDateOnAfterValidate(var ItemJournalLine: Record "Item Journal Line"; PostingDate: Date; xPostingDate: Date; var IsHandled: Boolean)
begin
end;

aobsgit avatar Aug 31 '22 14:08 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.

Build ID: 48444.

JesperSchulz avatar Oct 27 '22 17:10 JesperSchulz