ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 7322 "Create Inventory Pick/Movement" - SetFilterInternalMomement

Open hhoutaptean opened this issue 5 years ago • 1 comments

We would like to request an event in in "Create Inventory Pick/Movement" (CodeUnit 7322) called from “Internal Movement” (Page 7399) so we can add extra check(s) on Create Inventory Movement. For our check it is required to be able apply several filters to reduce the lines and inventory movements created.

Event:

  local procedure SetFilterInternalMomement(var InternalMovementLine: Record "Internal Movement Line"; InternalMovementHeader: Record "Internal Movement Header"): Boolean
    begin
        with InternalMovementLine do begin
            SetRange("No.", InternalMovementHeader."No.");
            SetFilter("Qty. (Base)", '>0');
           // START EVENT ++
           OnAfterSetFilterInternalMovement(InternalMovementLine, InternalMovementHeader);
           // END EVENT --
            exit(Find('-'));
        end;
    end;

Publisher function:

 [IntegrationEvent(false, false)]
 local procedure OnAfterSetFilterInternalMovement(var InternalMovementLine: Record "Internal Movement Line"; InternalMovementHeader: Record "Internal Movement Header")
 begin
 end;

hhoutaptean avatar Feb 03 '21 13:02 hhoutaptean

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. We will update this issue with information about availability. 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.

JesperSchulz avatar Feb 10 '21 07:02 JesperSchulz