Closed MatthewMcCarthy7 closed 4 months ago
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: 18666.
Describe the request
In Codeunit "Assembly-Post" can we add OnBeforeRestoreItemTrackingCreateSalesAssemblyReservationEntry in procedure RestoreItemTracking.
local procedure RestoreItemTracking(var ItemLedgEntry: Record "Item Ledger Entry"; OrderNo: Code[20]; OrderLineNo: Integer; SourceType: Integer; DocType: Option; RcptDate: Date; ShptDate: Date) var AsmHeader: Record "Assembly Header"; ReservEntry: Record "Reservation Entry"; ATOLink: Record "Assemble-to-Order Link"; SalesLine: Record "Sales Line"; FromTrackingSpecification: Record "Tracking Specification"; CreateReservEntry: Codeunit "Create Reserv. Entry"; IsATOHeader: Boolean; ReservStatus: Enum "Reservation Status"; IsHandled: Boolean; begin IsHandled := false; OnBeforeRestoreItemTracking(ItemLedgEntry, OrderNo, OrderLineNo, SourceType, DocType, RcptDate, ShptDate, IsHandled); if not IsHandled then with ItemLedgEntry do begin AsmHeader.Get(AsmHeader."Document Type"::Order, OrderNo); IsATOHeader := (OrderLineNo = 0) and AsmHeader.IsAsmToOrder();
Additional context
We are creating Assembly Order for Transfer Orders, and need that event to Post the Assembly Order for that Transfer Order with Item Tracking Lines Internal work item: AB#524728