Codeunit 5610 "Calculate Depreciation"
Base Application · Microsoft.FixedAssets.Depreciation
Across versions
- BC23-30present
Neighbourhood 7 connected objects and pages
Base Application · Microsoft.FixedAssets.Depreciation · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeCalculate(var DeprAmount: Decimal; var Custom1Amount: Decimal; var NumberOfDays: Integer; var Custom1NumberOfDays: Integer; FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; EntryAmounts: array[4] of Decimal; DateFromProjection: Date; DaysInPeriod: Integer; var IsHandled: Boolean)(integration)OnBeforeCheckDeprDaysInFiscalYear(FADeprBook: Record "FA Depreciation Book"; CheckDeprDays: Boolean; UntilDate: Date; var IsHandled: Boolean)(integration)OnAfterCalcDeprYearCalculateAdditionalDepr2ndYear(var DeprAmount: Decimal; FANo: code[20]; DepreBookCode: code[10])(integration)
Procedures
Calculate(var DeprAmount: Decimal; var Custom1Amount: Decimal; var NumberOfDays: Integer; var Custom1NumberOfDays: Integer; FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; EntryAmounts: array[4] of Decimal; DateFromProjection: Date; DaysInPeriod: Integer)
Plus 1 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 5611 “Calculate Normal Depreciation” (1 call:
Calculate → Calculate) - Codeunit 5612 “Calculate Custom 1 Depr.” (1 call:
Calculate → Calculate) - Codeunit 5616 “Depreciation Calculation” (1 call:
CheckDeprDaysInFiscalYear → DeprDays) - Codeunit 5617 “FA Date Calculation” (1 call:
CheckDeprDaysInFiscalYear → GetFiscalYear)
Called by
- Report 5607 “Fixed Asset - Projected Value” (2 calls:
CalculateFirstDeprAmount → Calculate,CalculateSecondDeprAmount → Calculate) - Codeunit 5632 “FA Jnl.-Post Line” (1 call:
PostDeprUntilDate → Calculate) - Codeunit 5642 “FA Reclass. Transfer Line” (1 call:
CalcDB1DeprAmount → Calculate)
Countries that replace it
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Calculate Depreciation"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.