Codeunit 5857 Copy Invt. Document Mgt.

Base Application, Microsoft.Inventory.Document

Source AL, 579 lines

src/Layers/W1/BaseApp/Inventory/Document/CopyInvtDocumentMgt.Codeunit.allines 13 to 28 of 579, Copyright (c) Microsoft Corporation. MIT

codeunit 5857 "Copy Invt. Document Mgt."{    trigger OnRun()    begin    end;    var        ItemCheckAvail: Codeunit "Item-Check Avail.";        TransferOldExtLines: Codeunit "Transfer Old Ext. Text Lines";        ItemTrackingManagement: Codeunit "Item Tracking Management";        InvtDocType: Enum "Invt. Doc. Document Type From";        GlobalFromDocType: Enum "Invt. Doc. Document Type From";        IncludeHeader: Boolean;        RecalculateLines: Boolean;        CreateToHeader: Boolean;

All 579 lines

Events 5 in 29

[IntegrationEvent] OnCopyInvtDocLineOnBeforeCopyItemTrackingAndAppliesValues(var ToInvtDocumentHeader: Record "Invt. Document Header"; var ToInvtDocumentLine: Record "Invt. Document Line"; var FromInvtDocumentHeader: Record "Invt. Document Header"; var FromInvtDocumentLine: Record "Invt. Document Line"; FromInvtDocType: Enum "Invt. Doc. Document Type From"; var CopyThisLine: Boolean; var IsHandled: Boolean)new in 23
[IntegrationEvent] OnAfterCopyInvtDocLine(var ToInvtDocumentLine: Record "Invt. Document Line"; var FromInvtDocumentHeader: Record "Invt. Document Header"; var FromInvtDocumentLine: Record "Invt. Document Line")new in 23
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryDocumentLine(var FromInvtDocumentLine: Record "Invt. Document Line")new in 25
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryReceiptLine(var FromInvtReceiptLine: Record "Invt. Receipt Line")new in 25
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryShipmentLine(var FromInvtShipmentLine: Record "Invt. Shipment Line")new in 25

Public procedures 6 in 29

SetProperties(NewIncludeHeader: Boolean; NewRecalculateLines: Boolean; NewCreateToHeader: Boolean; NewHideDialog: Boolean; NewFillAppliesFields: Boolean)new in 18
CopyItemDoc(FromDocType: Enum "Invt. Doc. Document Type From"; FromDocNo: Code[20]; var ToInvtDocHeader: Record "Invt. Document Header")new in 18
GetItemDocLedgerEntryNo(DocNo: Code[20]; DocType: Integer; DocLineNo: Integer): Integernew in 18
CheckItemAvailable(var ToInvtDocHeader: Record "Invt. Document Header"; var ToInvtDocLine: Record "Invt. Document Line")new in 20
SetCopyItemTracking(NewCopyItemTracking: Boolean)new in 23
CopyAsCorrection(NewIsCorrection: Boolean)new in 23

Changes 3 in 25

List17181920212223242526272829
Procedures12
Events23
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryDocumentLine(var FromInvtDocumentLine: Record "Invt. Document Line")new in 25
added
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryReceiptLine(var FromInvtReceiptLine: Record "Invt. Receipt Line")new in 25
added
[IntegrationEvent] OnCopyItemDocOnBeforeLoopFromInventoryShipmentLine(var FromInvtShipmentLine: Record "Invt. Shipment Line")new in 25
added

All 8 changes in 18-29