Codeunit 9134 Check Transfer Document

Base Application, Microsoft.Inventory.Transfer

Source AL, 46 lines

src/Layers/W1/BaseApp/Inventory/Transfer/CheckTransferDocument.Codeunit.allines 9 to 24 of 46, Copyright (c) Microsoft Corporation. MIT

codeunit 9134 "Check Transfer Document"{    var        CannotChangeItemWithOutstandingDocumentLinesErr: Label 'You cannot delete %1 %2 because there are one or more outstanding transfer orders that include this item.', Comment = '%1 - Item, %2 - Item No.';    [EventSubscriber(ObjectType::Table, Database::Item, 'OnAfterCheckDocuments', '', false, false)]    local procedure ItemOnBeforeCheckDocuments(Item: Record Item; CurrentFieldNo: Integer; CheckFieldNo: Integer; CheckFieldCaption: Text);    begin        CheckTransferLines(Item, CurrentFieldNo, CheckFieldNo, CheckFieldCaption);    end;    internal procedure CheckTransferLines(Item: Record Item; CurrentFieldNo: Integer; CheckFieldNo: Integer; CheckFieldCaption: Text)    var        TransferLine: Record "Transfer Line";        IsHandled: Boolean;    begin

All 46 lines

Events 1 in 29

[IntegrationEvent] OnBeforeCheckTransferLines(Item: Record Item; CurrentFieldNo: Integer; CheckFieldNo: Integer; CheckFieldCaption: Text; var IsHandled: Boolean)new in 25