Codeunit 8625 Setup Item Costing Method

Base Application, Microsoft.Inventory.Setup

Source AL, 25 lines

src/Layers/W1/BaseApp/Inventory/Setup/SetupItemCostingMethod.Codeunit.allines 9 to 24 of 25, Copyright (c) Microsoft Corporation. MIT

codeunit 8625 "Setup Item Costing Method"{    TableNo = Item;    trigger OnRun()    var        InventorySetup: Record "Inventory Setup";    begin        Rec."Costing Method" := InventorySetup."Default Costing Method"::FIFO;        if Rec.Type = Rec.Type::Inventory then            if InventorySetup.Get() then                Rec."Costing Method" := InventorySetup."Default Costing Method";        Rec.Modify();    end;}

All 25 lines