Codeunit 730 Copy Item

Base Application, Microsoft.Inventory.Item

Source AL, 600 lines

src/Layers/W1/BaseApp/Inventory/Item/CopyItem.Codeunit.allines 20 to 35 of 600, Copyright (c) Microsoft Corporation. MIT

codeunit 730 "Copy Item"{    TableNo = Item;    trigger OnRun()    var        CopyItemPage: Page "Copy Item";        IsItemCopied: Boolean;        IsHandled: Boolean;    begin        OnBeforeOnRun(Rec, FirstItemNo, LastItemNo, IsItemCopied, IsHandled);        if IsHandled then begin            if IsItemCopied then                ShowNotification(Rec);            exit;        end;

All 600 lines

Events 12 in 29

[IntegrationEvent] OnAfterCopyExtendedTexts(var SourceItem: Record Item; var TargetItem: Record Item)17-29
[IntegrationEvent] OnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record Item; var TargetItem: Record Item)17-29
[IntegrationEvent] OnBeforeOnRun(Item: Record Item; var FirstItemNo: Code[20]; var LastItemNo: Code[20]; var IsItemCopied: Boolean; var IsHandled: Boolean)17-29
[IntegrationEvent] OnRunOnAfterItemCopied(var CopyItemBuffer: Record "Copy Item Buffer")17-29
[IntegrationEvent] OnBeforeInitSeries(var Item: Record Item; var InventorySetup: Record "Inventory Setup")17-29
[IntegrationEvent] OnBeforeCopyItemVariants(var TempCopyItemBuffer: Record "Copy Item Buffer" temporary; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeCopyItem(SourceItem: Record Item; var TargetItem: Record Item; CopyCounter: Integer; var CopyItemBuffer: Record "Copy Item Buffer")new in 20

All 14 events in 17-29

Public procedures 7 in 29

DoCopyItem()17-29
SetCopyItemBuffer(NewCopyItemBuffer: Record "Copy Item Buffer" temporary)17-29
CopyItem(CopyCounter: Integer)17-29
CopyItemRelatedTable(TableId: Integer; FieldNo: Integer; FromItemNo: Code[20]; ToItemNo: Code[20])17-29
CopyItemRelatedTableFromRecRef(var SourceRecRef: RecordRef; FieldNo: Integer; FromItemNo: Code[20]; ToItemNo: Code[20])17-29
ShowCreatedItems(var ItemCopiedNotification: Notification)17-29

All 7 procedures

Changes 1 in 29

List17181920212223242526272829
Events14211
[IntegrationEvent] OnBeforeCopyItemPriceListLines2(FromItemNo: Code[20]; ToItemNo: Code[20]; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type"; var IsHandled: Boolean)new in 29
added

All 9 changes in 17-29