codeunitFixed Assetsofficial - Microsoftderived - from the source, no model text

Codeunit 5616 "Depreciation Calculation"

Base Application · Microsoft.FixedAssets.Depreciation

Across versions

  1. BC23present
  2. BC241 events added
  3. BC251 events added, 1 events removed
  4. BC26unchanged
  5. BC275 procedures added
  6. BC281 procedures added
  7. BC29-30unchanged

Neighbourhood 22 connected objects and pages

Codeunit 5611 "Calculate Normal Depreciation" (calls, 23 links)Calculate Normal DepreciationCodeunit 5612 "Calculate Custom 1 Depr." (calls, 14 links)Calculate Custom 1 Depr.Report 5607 "Fixed Asset - Projected Value" (calls, 7 links)Fixed Asset - Projected ValueCodeunit 5605 "Calculate Disposal" (calls, 5 links)Calculate DisposalCodeunit 5601 "FA Insert G/L Account" (calls, 3 links)FA Insert G/L AccountCodeunit 5606 "FA Check Consistency" (calls, 3 links)FA Check ConsistencyCodeunit 5618 "Table Depr. Calculation" (calls, 3 links)Table Depr. CalculationCodeunit 5642 "FA Reclass. Transfer Line" (calls, 3 links)FA Reclass. Transfer LineTable 5612 "FA Depreciation Book" (calls, 3 links)FA Depreciation BookCodeunit 5613 "Calculate Acq. Cost Depr." (calls, 2 links)Calculate Acq. Cost Depr.Codeunit 5600 "FA Insert Ledger Entry" (calls)FA Insert Ledger EntryCodeunit 5610 "Calculate Depreciation" (calls)Calculate DepreciationCodeunit 5617 "FA Date Calculation" (calls)FA Date CalculationCodeunit 5626 "FA General Report" (calls)FA General ReportCodeunit 5631 "FA Jnl.-Check Line" (calls)Codeunit 5632 "FA Jnl.-Post Line" (calls)Codeunit 5634 "FA Jnl.-Show Entries" (calls)Codeunit 6283 "Sust. FA Journal Subscriber" (calls)Page 5666 "FA Depreciation Books Subform" (calls)Report 5611 "FA Posting Group - Net Change" (calls)Table 179 "Reversal Entry" (calls)Table 5640 "Main Asset Component" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.FixedAssets.Depreciation · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Permissions TableData “FA Ledger Entry” = r, TableData “FA Posting Type Setup” = r, TableData “Maintenance Ledger Entry” = r

Events published

  • OnAfterAdjustDepr(DeprBookCode: Code[10]; BookValue: Decimal; MaxValue: Decimal; var Depreciation: Decimal) (integration)
  • OnAfterCalcDepreciation(DeprBookCode: Code[10]; var Depreciation: Decimal; BookValue: Decimal) (integration)
  • OnAfterDeprDays(StartingDate: Date; EndingDate: Date; var NumberOfDeprDays: Integer; Year365Days: Boolean) (integration)
  • OnAfterGetDeprPeriod(FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; var StartingDate: Date; var EndingDate: Date; var NumberOfDays: Integer; Year365Days: Boolean) (integration)
  • OnBeforeCalcRounding(DeprBook: Record "Depreciation Book"; OrigDeprAmount: Decimal; var DeprAmount: Decimal; var IsHandled: Boolean) + BC25 − BC25 (integration)
  • OnBeforeFindMaxDate(var FALedgEntry: Record "FA Ledger Entry"; EntryDates: array[4] of Date; Year365Days: Boolean; var MaxDate: Date; var IsHandled: Boolean) (integration)
  • OnBeforeGetFirstDeprDate(FixedAssetNo: Code[20]; DepreciationBookCode: Code[10]; Year365Days: Boolean; var LocalDate: Date; var IsHandled: Boolean) (integration)
  • OnBeforeUseDeprStartingDate(FANo: Code[20]; DeprBookCode: Code[10]; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnAfterGetFAPostingTypeSetup(var FAPostingTypeSetup: Record "FA Posting Type Setup"; Type: Option IncludeInDeprCalc,IncludeInGainLoss,DepreciationType,ReverseType) (integration)
  • OnCalcEntryAmountsOnAfterSetFALedgEntryFilters(var FALedgerEntry: Record "FA Ledger Entry"; I: Integer) (integration)
  • OnGetFirstDeprDateOnAfterSetFAFilter(var FALedgerEntry: Record "FA Ledger Entry") + BC24 (integration)
  • OnAfterSetFAFilter(var FALedgerEntry: Record "FA Ledger Entry") (integration)

Procedures

  • DeprDays(StartingDate: Date; EndingDate: Date; Year365Days: Boolean): Integer + BC27
  • DeprDays(StartingDate: Date; EndingDate: Date; Year365Days: Boolean; UseAccountingPeriod: Boolean): Integer + BC27
  • ToMorrow(ThisDate: Date; Year365Days: Boolean): Date + BC27
  • ToMorrow(ThisDate: Date; Year365Days: Boolean; UseAccountingPeriod: Boolean): Date + BC27
  • Yesterday(ThisDate: Date; Year365Days: Boolean): Date + BC27
  • Yesterday(ThisDate: Date; Year365Days: Boolean; UseAccountingPeriod: Boolean): Date + BC27
  • SetFAFilter(var FALedgEntry: Record "FA Ledger Entry"; FANo: Code[20]; DeprBookCode: Code[10]; FAPostingTypeOrder: Boolean)
  • CalcEntryAmounts(FANo: Code[20]; DeprBookCode: Code[10]; StartingDate: Date; EndingDate: Date; var EntryAmounts: array[4] of Decimal)
  • UseDeprStartingDate(FANo: Code[20]; DeprBookCode: Code[10]): Boolean
  • GetFirstDeprDate(FANo: Code[20]; DeprBookCode: Code[10]; Year365Days: Boolean): Date + BC27
  • GetFirstDeprDate(FANo: Code[20]; DeprBookCode: Code[10]; Year365Days: Boolean; UseAccountingPeriod: Boolean): Date + BC27
  • GetMinusBookValue(FANo: Code[20]; DeprBookCode: Code[10]; StartingDate: Date; EndingDate: Date): Decimal
  • GetUnpostedBonusDepreciationForCalc(var FADepreciationBook: Record "FA Depreciation Book"; StartingDate: Date; EndingDate: Date): Decimal + BC28 (internal)
  • AdjustDepr(DeprBookCode: Code[10]; var Depreciation: Decimal; BookValue: Decimal; SalvageValue: Decimal; EndingBookValue: Decimal; FinalRoundingAmount: Decimal)
  • AdjustCustom1(DeprBookCode: Code[10]; var DeprAmount: Decimal; var Custom1Amount: Decimal; BookValue: Decimal; SalvageValue: Decimal; EndingBookValue: Decimal; FinalRoundingAmount: Decimal)
  • GetSign(BookValue: Decimal; DeprBasis: Decimal; SalvageValue: Decimal; MinusBookValue: Decimal): Integer
  • GetCustom1Sign(BookValue: Decimal; AcquisitionCost: Decimal; Custom1: Decimal; SalvageValue: Decimal; MinusBookValue: Decimal): Integer
  • GetNewSigns(var BookValue: Decimal; var DeprBasis: Decimal; var SalvageValue: Decimal; var MinusBookValue: Decimal)
  • GetNewCustom1Signs(var BookValue: Decimal; var AcquisitionCost: Decimal; var Custom1: Decimal; var SalvageValue: Decimal; var MinusBookValue: Decimal)
  • CalcRounding(DeprBookCode: Code[10]; DeprAmount: Decimal): Decimal
  • CalculateDeprInPeriod(FANo: Code[20]; DeprBookCode: Code[10]; EndingDate: Date; CalculatedDepr: Decimal; Sign: Integer; var NewBookValue: Decimal; var DeprBasis: Decimal; var SalvageValue: Decimal; var MinusBookValue: Decimal)
  • GetDeprPeriod(FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; var StartingDate: Date; var EndingDate: Date; var NumberOfDays: Integer; Year365Days: Boolean) + BC27
  • GetDeprPeriod(FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; var StartingDate: Date; var EndingDate: Date; var NumberOfDays: Integer; Year365Days: Boolean; UseAccountingPeriod: Boolean) + BC27
  • DeprInFiscalYear(FANo: Code[20]; DeprBookCode: Code[10]; StartingDate: Date): Decimal
  • GetPartOfCalculation(Type: Option IncludeInDeprCalc,IncludeInGainLoss,DepreciationType,ReverseType; PostingType: Option "Write-Down",Appreciation,"Custom 1","Custom 2"; DeprBookCode: Code[10]): Boolean
  • FAName(var FA: Record "Fixed Asset"; DeprBookCode: Code[10]): Text[200]
  • FADeprBookName(DeprBookCode: Code[10]): Text[200]
  • DeprDays365(StartingDate: Date; EndingDate: Date): Integer

Plus 8 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.

Called by

Recent changes

Countries that replace it

GB, RU

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: "Depreciation Calculation"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources