{"title":"Codeunit 5842 Cost Adjmt. Signals, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5842-cost-adjmt-signals/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5842,"name":"Cost Adjmt. Signals","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5842-cost-adjmt-signals/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5842-cost-adjmt-signals/source/","path":"src/Layers/W1/BaseApp/Inventory/Costing/ActionMessage/CostAdjmtSignals.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:5842":{"name":"Cost Adjmt. Action Message","url":"https://jonas-paprotka.de/ref/table/5842-cost-adjmt-action-message/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"table:5804":{"name":"Avg. Cost Adjmt. Entry Point","url":"https://jonas-paprotka.de/ref/table/5804-avg-cost-adjmt-entry-point/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:5824":{"name":"Cost Adjustment Params Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/"}},"procs":[{"name":"RunAllTests","line":52,"kind":"procedure","access":"internal","params":0,"steps":[[56,"write",5842,"DeleteAll"],[58,"call","CheckCostingEnabled",0],[59,"call","CheckInventorySetup",0],[60,"call","CheckInventoryPeriod",0],[61,"call","CheckAvgCostAdjmtEntryPoint",0],[62,"call","CheckInvtAdjmtEntryOrder",0],[63,"call","CheckIfItemsAreExcludedFromCostAdjustment",0],[64,"call","CheckResidualAmountFor0Inventory",0]]},{"name":"CheckCostingEnabled","line":76,"kind":"procedure","access":"local","params":0,"steps":[[83,"call","SignalAlreadyRaised",2],[87,"call","GetMinDaysBetweenCostAdjmtSignals",0],[90,"call","CheckAdjustCostEnabledInInventorySetup",1],[91,"call","CheckAdjustCostJobScheduled",1],[92,"call","CheckAdjustCostItemRegisterExists",1],[96,"call","RaiseCostAdjmtSignal",7],[98,"call","DictionaryToJsonText",1],[99,"call","LogUsageInTelemetry",1],[101,"call","RaiseCostAdjmtSignal",7]]},{"name":"CheckAdjustCostEnabledInInventorySetup","line":106,"kind":"procedure","access":"local","params":1,"steps":[[110,"ext","table",313,"GetRecordOnce",0],[111,"ext","table",313,"AutomaticCostAdjmtRequired",0]]},{"name":"CheckAdjustCostItemRegisterExists","line":130,"kind":"procedure","access":"local","params":1,"steps":[[137,"call","GetMaxDaysCostAdjustmentNotRunning",0]]},{"name":"CheckIfItemsAreExcludedFromCostAdjustment","line":156,"kind":"procedure","access":"local","params":0,"steps":[[164,"call","SignalAlreadyRaised",2],[168,"call","GetMinDaysBetweenCostAdjmtSignals",0],[181,"call","RaiseCostAdjmtSignal",7],[184,"call","LogUsageInTelemetry",1],[186,"call","RaiseCostAdjmtSignal",7]]},{"name":"CheckAvgCostAdjmtEntryPoint","line":191,"kind":"procedure","access":"local","params":0,"steps":[[200,"call","SignalAlreadyRaised",2],[204,"call","GetMinDaysBetweenCostAdjmtSignals",0],[205,"call","GetMaxAvgCostAdjmtEntryPointsNotAdjusted",0],[213,"call","RaiseCostAdjmtSignal",7],[215,"call","DictionaryToJsonText",1],[216,"call","LogUsageInTelemetry",1],[218,"call","RaiseCostAdjmtSignal",7]]},{"name":"CheckInvtAdjmtEntryOrder","line":223,"kind":"procedure","access":"local","params":0,"steps":[[229,"call","SignalAlreadyRaised",2],[233,"call","GetMinDaysBetweenCostAdjmtSignals",0],[238,"call","GetMaxInvtAdjmtEntryOrdersNotAdjusted",0],[239,"call","RaiseCostAdjmtSignal",7],[242,"call","LogUsageInTelemetry",1],[244,"call","RaiseCostAdjmtSignal",7]]},{"name":"CheckResidualAmountFor0Inventory","line":249,"kind":"procedure","access":"local","params":0,"steps":[[257,"call","SignalAlreadyRaised",2],[261,"call","GetMinDaysBetweenCostAdjmtSignals",0],[265,"call","GetMaxNumberOfSignalsLogged",0],[267,"call","GetMaxNumberOfSignalsLogged",0],[275,"call","GetMaxNumberOfSignalsLogged",0],[277,"call","GetMaxNumberOfSignalsLogged",0],[279,"call","GetMaxNumberOfSignalsLogged",0],[288,"call","RaiseCostAdjmtSignal",7],[290,"call","DictionaryToJsonText",1],[291,"call","LogUsageInTelemetry",1]]},{"name":"CheckInventorySetup","line":295,"kind":"procedure","access":"local","params":0,"steps":[[302,"call","SignalAlreadyRaised",2],[306,"call","GetMinDaysBetweenCostAdjmtSignals",0],[308,"ext","table",5804,"IsAvgCostCalcTypeItem",1],[310,"call","RaiseCostAdjmtSignal",7],[313,"call","LogUsageInTelemetry",1],[316,"ext","table",313,"GetRecordOnce",0],[319,"call","RaiseCostAdjmtSignal",7],[322,"call","LogUsageInTelemetry",1],[326,"call","RaiseCostAdjmtSignal",7]]},{"name":"CheckInventoryPeriod","line":332,"kind":"procedure","access":"local","params":0,"steps":[[339,"call","SignalAlreadyRaised",2],[343,"call","GetMinDaysBetweenCostAdjmtSignals",0],[358,"call","RaiseCostAdjmtSignal",7],[361,"call","LogUsageInTelemetry",1],[363,"call","RaiseCostAdjmtSignal",7]]},{"name":"RaiseCostAdjmtSignal","line":368,"kind":"procedure","access":"local","params":7,"steps":[[380,"write",5842,"Insert"]]},{"name":"IsLoggingEnabled","line":404,"kind":"procedure","access":"local","params":0,"steps":[[406,"ext","table",313,"GetRecordOnce",0]]},{"name":"GetMaxAvgCostAdjmtEntryPointsNotAdjusted","line":410,"kind":"procedure","access":"local","params":0,"steps":[[412,"ext","table",313,"GetRecordOnce",0],[416,"call","GetMaxDaysCostAdjustmentNotRunning",0],[418,"call","GetMaxWeeksCostAdjustmentNotRunning",0],[420,"call","GetMaxMonthsCostAdjustmentNotRunning",0]]},{"name":"LogUsageInTelemetry","line":426,"kind":"procedure","access":"local","params":1,"steps":[[428,"ext","codeunit",8703,"LogUsage",3]]},{"name":"CheckAndLogAdjustCostEnabledOnAfterPostItem","line":467,"kind":"procedure","access":"local","params":2,"steps":[[469,"call","IsLoggingEnabled",0],[473,"call","CheckCostingEnabled",0]]},{"name":"RaiseSignalOnCostAdjustmentDurationExceeded","line":477,"kind":"procedure","access":"local","params":1,"steps":[[483,"call","IsLoggingEnabled",0],[486,"call","SignalAlreadyRaised",2],[490,"call","GetMinDaysBetweenCostAdjmtSignals",0],[492,"call","GetMaxCostAdjustmentDurationForItem",0],[496,"call","RaiseCostAdjmtSignal",7],[498,"call","DictionaryToJsonText",1]]},{"name":"RaiseSignalOnAfterMakeInventoryAdjustment","line":503,"kind":"procedure","access":"local","params":1,"steps":[[507,"call","IsLoggingEnabled",0],[510,"ext","codeunit",5824,"GetParameters",1],[513,"call","CheckInventorySetup",0],[514,"call","CheckInventoryPeriod",0],[515,"call","CheckAvgCostAdjmtEntryPoint",0],[516,"call","CheckInvtAdjmtEntryOrder",0],[519,"call","CheckIfItemsAreExcludedFromCostAdjustment",0]]}]}