Codeunit 99000793 Calculate Low-Level Code

Base Application, Microsoft.Manufacturing.ProductionBOM

Source AL, 349 lines

src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/CalculateLowLevelCode.Codeunit.allines 12 to 27 of 349, Copyright (c) Microsoft Corporation. MIT

codeunit 99000793 "Calculate Low-Level Code"{    Permissions = TableData Item = rm,                  TableData "Manufacturing Setup" = r,                    TableData "Stockkeeping Unit" = r;    TableNo = Item;    trigger OnRun()    var        ProdBOM: Record "Production BOM Header";        Item2: Record Item;    begin        Item2.Copy(Rec);        Item := Item2; // to store the last item- used in RecalcLowerLevels        Item2."Low-Level Code" := CalcLevels(1, Item2."No.", 0, 0);        if ProdBOM.Get(Item."Production BOM No.") then

All 349 lines

Events 7 in 29

[IntegrationEvent] OnBeforeItemModify(var Item: Record Item)17-29
[IntegrationEvent] OnCalcLevelsForProdBOM(var Item: Record Item; No: Code[20]; Level: Integer; LevelDepth: Integer; var TotalLevels: Integer)17-29
[IntegrationEvent] OnSetRecursiveLevelsOnItemOnBeforeCompItemModify(var CompItem: Record Item; IgnoreMissingItemsOrBOMs: Boolean)17-29
[IntegrationEvent] OnBeforeCalcLevels(Type: Option; No: Code[20]; Level: Integer; LevelDepth: Integer; var Result: Integer; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnBeforeSetRecursiveLevelsOnBOM(var ProductionBOMHeader: Record "Production BOM Header"; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnAfterCalcLevels(Type: Option " ",Item,"Production BOM",Assembly; No: Code[20]; var TotalLevels: Integer; Level: Integer; LevelDepth: Integer)new in 22
[IntegrationEvent] OnBeforeSetRecursiveLevelsOnItem(var CompItem: Record Item; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean; var IsHandled: Boolean)new in 24

All 9 events in 17-29

Public procedures 7 in 29

CalcLevels(Type: Option " ",Item,"Production BOM",Assembly; No: Code[20]; Level: Integer; LevelDepth: Integer): Integer17-29
RecalcLowerLevels(ProdBOMNo: Code[20]; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean)17-29
RecalcAsmLowerLevels(ParentItemNo: Code[20]; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean)17-29
SetRecursiveLevelsOnItem(var CompItem: Record Item; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean)17-29
SetRecursiveLevelsOnBOM(var CompBOM: Record "Production BOM Header"; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean)17-29
GetMax(Level1: Integer; Level2: Integer): Integer17-29

All 7 procedures

Changes 1 in 24

List17181920212223242526272829
Events421
[IntegrationEvent] OnBeforeSetRecursiveLevelsOnItem(var CompItem: Record Item; LowLevelCode: Integer; IgnoreMissingItemsOrBOMs: Boolean; var IsHandled: Boolean)new in 24
added

All 7 changes in 17-29