ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Page 5510 "Production Journal" - PostingDateOnAfterValidate
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;
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.