Codeunit 912 Calculate Assembly Cost

Base Application, Microsoft.Assembly.Costing

Source AL, 723 lines

src/Layers/W1/BaseApp/Assembly/Costing/CalculateAssemblyCost.Codeunit.allines 18 to 33 of 723, Copyright (c) Microsoft Corporation. MIT

codeunit 912 "Calculate Assembly Cost"{    trigger OnRun()    begin    end;    var        GLSetup: Record "General Ledger Setup";        TempItem: Record Item temporary;        TempPriceListLine: Record "Price List Line" temporary;        CostCalcMgt: Codeunit "Cost Calculation Management";        UOMMgt: Codeunit "Unit of Measure Management";#if not CLEAN28        CalculateStandardCost: Codeunit Microsoft.Manufacturing.StandardCost."Calculate Standard Cost";#endif

All 723 lines

Events 14 in 29

[IntegrationEvent] OnAfterSetProperties(var NewCalculationDate: Date; var NewCalcMultiLevel: Boolean; var NewLogErrors: Boolean; var NewStdCostWkshName: Text[50]; var NewShowDialog: Boolean)new in 26
[IntegrationEvent] OnBeforeCalcItems(var Item: Record Item)new in 26
[IntegrationEvent] OnBeforeCalcItem(var Item: Record Item; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnCalcAssemblyItemOnAfterInitItemCost(var Item: Record Item)new in 26
[IntegrationEvent] OnCalcAssemblyItemOnAfterCalcItemRolledupCost(var Item: Record Item)new in 26
[IntegrationEvent] OnCalcAssemblyItemOnAfterCalcSingleLevelCost(var Item: Record Item)new in 26
[IntegrationEvent] OnCalcAssemblyItemOnAfterCalcItemCost(var Item: Record Item; CompItem: Record Item; BOMComponent: Record "BOM Component"; ComponentQuantity: Decimal)new in 26

All 14 events

Public procedures 9 in 29

SetProperties(NewCalculationDate: Date; NewCalcMultiLevel: Boolean; NewLogErrors: Boolean; NewStdCostWkshName: Text[50]; NewShowDialog: Boolean)new in 26
TestPreconditions(var Item: Record Item)new in 26
CalcItem(ItemNo: Code[20])new in 26
CalcItems(var Item: Record Item; var NewTempItem: Record Item)new in 26
CalcAssemblyItemPrice(ItemNo: Code[20])new in 26
CalculateAssemblyCostExp(AssemblyHeader: Record "Assembly Header"; var ExpCost: array[5] of Decimal)new in 26

All 9 procedures