Event Request: Table 37 Sales Line
Event declaration: LOCAL [IntegrationEvent] OnAfterFilterLinesWithItemToPlan(VAR SalesLine : Record "Sales 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","Drop Shipment","Location Code","Shipment Date"); 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("Drop Shipment",Item.GETFILTER("Drop Shipment Filter")); SETFILTER("Shortcut Dimension 1 Code",Item.GETFILTER("Global Dimension 1 Filter")); SETFILTER("Shortcut Dimension 2 Code",Item.GETFILTER("Global Dimension 2 Filter")); SETFILTER("Shipment Date",Item.GETFILTER("Date Filter")); SETFILTER("Outstanding Qty. (Base)",'<>0'); // *** new code *** >> OnAfterFilterLinesWithItemToPlan(Rec,Item,DocumentType); // *** new code *** <<