ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1002 - Job Create-Invoice - OnCreateSalesInvoiceJobTaskOnAfterSetFilters

Open asaez85 opened this issue 2 years ago • 1 comments

Describe the request

Event Resquest:

        JobPlanningLine.Reset();
        JobPlanningLine.SetCurrentKey("Job No.", "Job Task No.");
        JobPlanningLine.SetRange("Job No.", JobTask2."Job No.");
        JobPlanningLine.SetRange("Job Task No.", JobTask2."Job Task No.");
        JobPlanningLine.SetFilter("Planning Date", JobTask2.GetFilter("Planning Date Filter"));
        OnCreateSalesInvoiceJobTaskOnAfterSetFilters(JobPlanningLine, JobTask2);  // [Event Request]
        if JobPlanningLine.Find('-') then
            repeat
                if TransferLine(JobPlanningLine) then begin
                    TempJobPlanningLine := JobPlanningLine;
                    TempJobPlanningLine.Insert();
                end;
            until JobPlanningLine.Next() = 0;

IntegrationEvent:

    [IntegrationEvent(false, false)]
    local procedure OnCreateSalesInvoiceJobTaskOnAfterSetFilters(var JobPlanningLine: Record "Job Planning Line"; var JobTask2: Record "Job Task")
    begin
    end;

Additional context

We need this event that will allow transferring filters from JobTask2 to JobPlanningLine before the generation of the temporary record Internal work item: AB#523862

asaez85 avatar Apr 03 '24 08:04 asaez85

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

JesperSchulz avatar Apr 09 '24 18:04 JesperSchulz