Name DataType Subtype Length ActionMsgEntry Record Action Message Entry ReservEntry Record Reservation Entry
DeleteTracking(VAR Item : Record Item) ActionMsgEntry.SETCURRENTKEY("Reservation Entry"); WITH ReservEntry DO BEGIN RESET; SETCURRENTKEY("Item No.","Variant Code","Location Code","Reservation Status"); SETRANGE("Item No.",Item."No."); SETFILTER("Reservation Status",'<>%1',"Reservation Status"::Prospect); IF FIND('-') THEN REPEAT IF (("Reservation Status" <> "Reservation Status"::Reservation) OR (Binding = Binding::"Order-to-Order")) THEN BEGIN ActionMsgEntry.SETRANGE(ActionMsgEntry."Reservation Entry","Entry No."); DELETE; ActionMsgEntry.DELETEALL; END; UNTIL NEXT = 0; END;
Comments