{"title":"Codeunit 5612 Calculate Custom 1 Depr., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5612-calculate-custom-1-depr/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":5612,"name":"Calculate Custom 1 Depr.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5612-calculate-custom-1-depr/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5612-calculate-custom-1-depr/source/","path":"src/Layers/W1/BaseApp/FixedAssets/Depreciation/CalculateCustom1Depr.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":{"codeunit:5616":{"name":"Depreciation Calculation","url":"https://jonas-paprotka.de/ref/codeunit/5616-depreciation-calculation/"},"codeunit:5618":{"name":"Table Depr. Calculation","url":"https://jonas-paprotka.de/ref/codeunit/5618-table-depr-calculation/"}},"procs":[{"name":"Calculate","line":71,"kind":"procedure","params":10,"steps":[[77,"event","OnBeforeCalculate",1],[91,"event","OnAfterGetDeprBooks",0],[114,"call","TransferValues",0],[115,"call","SkipRecord",0],[121,"ext","codeunit",5616,"GetCustom1Sign",5],[126,"ext","codeunit",5616,"GetNewCustom1Signs",5],[136,"ext","codeunit",5616,"GetFirstDeprDate",4],[140,"ext","codeunit",5616,"UseDeprStartingDate",2],[150,"ext","codeunit",5616,"DeprDays",4],[157,"call","FAName",0],[158,"ext","codeunit",5616,"DeprDays",4],[169,"call","CalcDeprBasis",0],[173,"call","CalcSLAmount",0],[175,"call","CalcDB1Amount",0],[177,"call","CalcDB2Amount",0],[179,"call","CalcDBSLAmount",0],[184,"call","CalcCustom1Amount",0],[187,"event","OnCalculateOnBeforeCalcCustom1DeprAmount",0],[189,"call","CalcCustom1DeprAmount",0],[190,"ext","codeunit",5616,"AdjustCustom1",7]]},{"name":"CalcSLAmount","line":211,"kind":"procedure","access":"local","params":0,"steps":[[216,"call","CalcDeprBasis",0],[216,"call","CalcSLPercent",0],[225,"ext","codeunit",5616,"DeprDays",4],[226,"ext","codeunit",5616,"Yesterday",3],[228,"event","OnCalcSLAmountOnAfterSetRemainingLife",0]]},{"name":"CalcDBSLAmount","line":239,"kind":"procedure","access":"local","params":0,"steps":[[245,"call","CalcDB1Amount",0],[247,"call","CalcDB2Amount",0],[250,"call","CalcSLAmount",0]]},{"name":"CalcDB1Amount","line":264,"kind":"procedure","access":"local","params":0,"steps":[[269,"ext","codeunit",5616,"DeprInFiscalYear",3]]},{"name":"CalcCustom1Amount","line":277,"kind":"procedure","access":"local","params":0,"steps":[[286,"ext","codeunit",5618,"GetTablePercent",5]]},{"name":"CalcSLPercent","line":291,"kind":"procedure","access":"local","params":0,"steps":[[306,"ext","codeunit",5616,"DeprDays",4]]},{"name":"CalcCustom1DeprAmount","line":332,"kind":"procedure","access":"local","params":0,"steps":[[334,"call","CalcCustom1DeprPercent",0]]},{"name":"CalcDeprBasis","line":337,"kind":"procedure","access":"local","params":0,"steps":[[353,"call","FAName",0]]},{"name":"TransferValues","line":361,"kind":"procedure","access":"local","params":0,"steps":[[372,"call","FAName",0],[383,"ext","codeunit",5616,"GetMinusBookValue",4],[383,"ext","codeunit",5616,"GetUnpostedBonusDepreciationForCalc",3],[395,"call","FAName",0],[403,"call","FAName",0],[405,"ext","codeunit",5616,"DeprDays",4],[431,"call","FAName",0],[435,"call","FAName",0],[439,"call","FAName",0],[441,"event","OnAfterTransferValues",0]]},{"name":"FAName","line":444,"kind":"procedure","access":"local","params":0,"steps":[[448,"ext","codeunit",5616,"FAName",2]]}]}