Codeunit 924 Asm. Item Journal Mgt.

Base Application, Microsoft.Inventory.Journal

Source AL, 215 lines

src/Layers/W1/BaseApp/Assembly/Inventory/Journal/AsmItemJournalMgt.Codeunit.allines 14 to 29 of 215, Copyright (c) Microsoft Corporation. MIT

codeunit 924 "Asm. Item Journal Mgt."{    var        CannotChangeFieldErr: Label 'You cannot change %1 when %2 is %3.', Comment = '%1 %2 - field captions, %3 - field value';    [EventSubscriber(ObjectType::Table, Database::Item, 'OnIsAssemblyItem', '', false, false)]    local procedure OnIsAssemblyItem(Item: Record Item; var Result: Boolean)    begin        Result := Item."Replenishment System" = Item."Replenishment System"::Assembly;    end;    [EventSubscriber(ObjectType::Table, Database::"Item Journal Line", 'OnValidateItemNoOnSetCostAndPrice', '', false, false)]    local procedure OnValidateItemNoOnSetCostAndPrice(var ItemJournalLine: Record "Item Journal Line"; UnitCost: Decimal)    begin        case ItemJournalLine."Entry Type" of            ItemJournalLine."Entry Type"::"Assembly Output":

All 215 lines

Events 1 in 29

[IntegrationEvent] OnValidateOrderNoOnAfterCopyFromAssemblyHeader(var ItemJournalLine: Record "Item Journal Line"; AssemblyHeader: Record "Assembly Header")new in 26