Codeunit 5616 Depreciation Calculation

Base Application, Microsoft.FixedAssets.Depreciation

Source AL, 723 lines

src/Layers/W1/BaseApp/FixedAssets/Depreciation/DepreciationCalculation.Codeunit.allines 13 to 28 of 723, Copyright (c) Microsoft Corporation. MIT

codeunit 5616 "Depreciation Calculation"{    Permissions = TableData "FA Ledger Entry" = r,                  TableData "FA Posting Type Setup" = r,                  TableData "Maintenance Ledger Entry" = r;    trigger OnRun()    begin    end;    var#pragma warning disable AA0074#pragma warning disable AA0470        Text000: Label '%1 %2 = %3 in %4 %5 = %6';#pragma warning restore AA0470#pragma warning restore AA0074

All 723 lines

Events 12 in 29

[IntegrationEvent] OnAfterAdjustDepr(DeprBookCode: Code[10]; BookValue: Decimal; MaxValue: Decimal; var Depreciation: Decimal)17-29
[IntegrationEvent] OnAfterCalcDepreciation(DeprBookCode: Code[10]; var Depreciation: Decimal; BookValue: Decimal)17-29
[IntegrationEvent] OnAfterDeprDays(StartingDate: Date; EndingDate: Date; var NumberOfDeprDays: Integer; Year365Days: Boolean)new in 19
[IntegrationEvent] OnAfterGetDeprPeriod(FANo: Code[20]; DeprBookCode: Code[10]; UntilDate: Date; var StartingDate: Date; var EndingDate: Date; var NumberOfDays: Integer; Year365Days: Boolean)new in 19
[IntegrationEvent] OnBeforeGetFirstDeprDate(FixedAssetNo: Code[20]; DepreciationBookCode: Code[10]; Year365Days: Boolean; var LocalDate: Date; var IsHandled: Boolean)new in 19
[IntegrationEvent] OnBeforeFindMaxDate(var FALedgEntry: Record "FA Ledger Entry"; EntryDates: array[4] of Date; Year365Days: Boolean; var MaxDate: Date; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeUseDeprStartingDate(FANo: Code[20]; DeprBookCode: Code[10]; var Result: Boolean; var IsHandled: Boolean)new in 20

All 14 events in 17-29

Public procedures 27 in 29

DeprDays(StartingDate: Date; EndingDate: Date; Year365Days: Boolean): Integer17-29
ToMorrow(ThisDate: Date; Year365Days: Boolean): Date17-29
Yesterday(ThisDate: Date; Year365Days: Boolean): Date17-29
SetFAFilter(var FALedgEntry: Record "FA Ledger Entry"; FANo: Code[20]; DeprBookCode: Code[10]; FAPostingTypeOrder: Boolean)17-29
CalcEntryAmounts(FANo: Code[20]; DeprBookCode: Code[10]; StartingDate: Date; EndingDate: Date; var EntryAmounts: array[4] of Decimal)17-29
UseDeprStartingDate(FANo: Code[20]; DeprBookCode: Code[10]): Boolean17-29

All 28 procedures in 17-29

Changes 1 in 28

List17181920212223242526272829
Procedures151
Events421212
internal GetUnpostedBonusDepreciationForCalc(var FADepreciationBook: Record "FA Depreciation Book"; StartingDate: Date; EndingDate: Date): Decimalnew in 28
added

All 19 changes in 17-29