Codeunit 6472 Serv. Copy Item

Base Application, Microsoft.Inventory.Item

Source AL, 50 lines

src/Layers/W1/BaseApp/Service/Item/ServCopyItem.Codeunit.allines 10 to 25 of 50, Copyright (c) Microsoft Corporation. MIT

codeunit 6472 "Serv. Copy Item"{    var        CopyItem: Codeunit "Copy Item";    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Item", 'OnAfterCopyItem', '', true, false)]    local procedure OnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record Item; var TargetItem: Record Item)    begin        CopyTroubleshootingSetup(SourceItem."No.", TargetItem."No.", CopyItemBuffer);        CopyItemResourceSkills(SourceItem."No.", TargetItem."No.", CopyItemBuffer);    end;    local procedure CopyTroubleshootingSetup(FromItemNo: Code[20]; ToItemNo: Code[20]; var CopyItemBuffer: Record "Copy Item Buffer")    var        TroubleshootingSetup: Record "Troubleshooting Setup";        RecRef: RecordRef;

All 50 lines