microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
770 stars 610 forks source link

[Event Change Request] Codeunit 900 "Assembly-Post" - OnAfterUndoInitPost #27037

Closed 1languste closed 4 weeks ago

1languste commented 1 month ago

Describe the request

I want to enable the user to change the PostingDate to the WorkDate(). Therefore, I request to add the PostingDate as a new Parameter to the OnAfterUndoInitPostevent:

local procedure UndoInitPost(var PostedAsmHeader: Record "Posted Assembly Header")
begin
    PostingDate := PostedAsmHeader."Posting Date";

    CheckPossibleToUndo(PostedAsmHeader);

    GetSourceCode(PostedAsmHeader.IsAsmToOrder());

    TempItemLedgEntry.Reset();
    TempItemLedgEntry.DeleteAll();
    // NEW BEGIN
    OnAfterUndoInitPost(PostedAsmHeader, PostingDate);
    // NEW END
end;

[IntegrationEvent(false, false)]
local procedure OnAfterUndoInitPost(var PostedAssemblyHeader: Record "Posted Assembly Header"; var PostingDate: Date)
begin
end;

Additional context

I want to enable the user to change the PostingDate to the WorkDate(). Internal work item: AB#544564

JesperSchulz commented 4 weeks ago

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: 23103.