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 Request] Codeunit 99000774 "Calculate Routing Line" - OnAfterSetCalendarEntryDateFilterOnReturnNextCalendarEntry #27024

Closed 1languste closed 3 weeks ago

1languste commented 1 month ago

Describe the request

I want to remove additional calendar entry filters. Therefore, I request the following event:

procedure ReturnNextCalendarEntry(var CalendarEntry2: Record "Calendar Entry"; OldCalendarEntry: Record "Calendar Entry"; Direction: Option Backward,Forward)
begin
    CalendarEntry2 := OldCalendarEntry;
    CalendarEntry2.SetRange(Date, CalendarEntry2.Date);
    // NEW BEGIN
    OnAfterSetCalendarEntryDateFiltersOnReturnNextCalendarEntry(CalendarEntry);
    // NEW END
    if Direction = Direction::Backward then begin
        CalendarEntry2.Find('-');           // rewind within the same day
        // ...
end;

[IntegrationEvent(false, false)]
local procedure OnAfterSetCalendarEntryDateFilterOnReturnNextCalendarEntry(var CalendarEntry: Record "Calendar Entry")
begin
end;

Additional context

I want to remove a calendar entry filter (for "Capacity (Effective)"). Internal work item: AB#544575

JesperSchulz commented 3 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: 23210.