Event Request: Table 901 Assembly Line
Event declaration: LOCAL [IntegrationEvent] OnAfterFilterLinesWithItemToPlan(VAR AssemblyLine : Record "Assembly Line";VAR Item : Record Item;DocumentType : Option)
A new code is required:
[External] FilterLinesWithItemToPlan(VAR Item : Record Item;DocumentType : Option) RESET; SETCURRENTKEY("Document Type",Type,"No.","Variant Code","Location Code"); SETRANGE("Document Type",DocumentType); SETRANGE(Type,Type::Item); SETRANGE("No.",Item."No."); SETFILTER("Variant Code",Item.GETFILTER("Variant Filter")); SETFILTER("Location Code",Item.GETFILTER("Location Filter")); SETFILTER("Due Date",Item.GETFILTER("Date Filter")); SETFILTER("Shortcut Dimension 1 Code",Item.GETFILTER("Global Dimension 1 Filter")); SETFILTER("Shortcut Dimension 2 Code",Item.GETFILTER("Global Dimension 2 Filter")); SETFILTER("Remaining Quantity (Base)",'<>0'); // *** new code *** >> OnAfterFilterLinesWithItemToPlan(Rec,Item,DocumentType); // *** new code *** <<