Codeunit "Copy Invt. Document Mgt."

ID 5857
Namespace: Microsoft.Inventory.Document

Methods

SetProperties

procedure SetProperties(NewIncludeHeader: Boolean, NewRecalculateLines: Boolean, NewCreateToHeader: Boolean, NewHideDialog: Boolean, NewFillAppliesFields: Boolean)

Parameters

Name Type Description
NewIncludeHeader Boolean
NewRecalculateLines Boolean
NewCreateToHeader Boolean
NewHideDialog Boolean
NewFillAppliesFields Boolean

SetCopyItemTracking

procedure SetCopyItemTracking(NewCopyItemTracking: Boolean)

Parameters

Name Type Description
NewCopyItemTracking Boolean

CopyAsCorrection

procedure CopyAsCorrection(NewIsCorrection: Boolean)

Parameters

Name Type Description
NewIsCorrection Boolean

CopyItemDoc

procedure CopyItemDoc(FromDocType: Enum "Invt. Doc. Document Type From", FromDocNo: Code[20], var ToInvtDocHeader: Record "Invt. Document Header")

Parameters

Name Type Description
FromDocType Enum Microsoft.Inventory.Document."Invt. Doc. Document Type From"
FromDocNo Code[20]
ToInvtDocHeader Table Microsoft.Inventory.Document."Invt. Document Header"

CheckItemAvailable

procedure CheckItemAvailable(var ToInvtDocHeader: Record "Invt. Document Header", var ToInvtDocLine: Record "Invt. Document Line")

Parameters

Name Type Description
ToInvtDocHeader Table Microsoft.Inventory.Document."Invt. Document Header"
ToInvtDocLine Table Microsoft.Inventory.Document."Invt. Document Line"

GetItemDocLedgerEntryNo

procedure GetItemDocLedgerEntryNo(DocNo: Code[20], DocType: Integer, DocLineNo: Integer): Integer

Parameters

Name Type Description
DocNo Code[20]
DocType Integer
DocLineNo Integer

Returns

Type Description
Integer

Events

OnCopyInvtDocLineOnBeforeCopyItemTrackingAndAppliesValues

[IntegrationEvent(False,False)]
procedure 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)

Parameters

Name Type Description
ToInvtDocumentHeader Table Microsoft.Inventory.Document."Invt. Document Header"
ToInvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
FromInvtDocumentHeader Table Microsoft.Inventory.Document."Invt. Document Header"
FromInvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
FromInvtDocType Enum Microsoft.Inventory.Document."Invt. Doc. Document Type From"
CopyThisLine Boolean
IsHandled Boolean

OnAfterCopyInvtDocLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyInvtDocLine(var ToInvtDocumentLine: Record "Invt. Document Line", var FromInvtDocumentHeader: Record "Invt. Document Header", var FromInvtDocumentLine: Record "Invt. Document Line")

Parameters

Name Type Description
ToInvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"
FromInvtDocumentHeader Table Microsoft.Inventory.Document."Invt. Document Header"
FromInvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"

OnCopyItemDocOnBeforeLoopFromInventoryDocumentLine

[IntegrationEvent(False,False)]
local procedure OnCopyItemDocOnBeforeLoopFromInventoryDocumentLine(var FromInvtDocumentLine: Record "Invt. Document Line")

Parameters

Name Type Description
FromInvtDocumentLine Table Microsoft.Inventory.Document."Invt. Document Line"

OnCopyItemDocOnBeforeLoopFromInventoryReceiptLine

[IntegrationEvent(False,False)]
local procedure OnCopyItemDocOnBeforeLoopFromInventoryReceiptLine(var FromInvtReceiptLine: Record "Invt. Receipt Line")

Parameters

Name Type Description
FromInvtReceiptLine Table Microsoft.Inventory.History."Invt. Receipt Line"

OnCopyItemDocOnBeforeLoopFromInventoryShipmentLine

[IntegrationEvent(False,False)]
local procedure OnCopyItemDocOnBeforeLoopFromInventoryShipmentLine(var FromInvtShipmentLine: Record "Invt. Shipment Line")

Parameters

Name Type Description
FromInvtShipmentLine Table Microsoft.Inventory.History."Invt. Shipment Line"

See also