Source AL, 1,164 lines
src/Layers/W1/BaseApp/FixedAssets/Depreciation/CalculateNormalDepreciation.Codeunit.allines 12 to 27 of 1,164, Copyright (c) Microsoft Corporation. MIT
codeunit 5611 "Calculate Normal Depreciation"{ Permissions = TableData "FA Ledger Entry" = r, TableData "FA Posting Type Setup" = r; trigger OnRun() begin end; var FA: Record "Fixed Asset"; FALedgEntry: Record "FA Ledger Entry"; DeprBook: Record "Depreciation Book"; FADeprBook: Record "FA Depreciation Book"; DerogFALedgEntry: Record "FA Ledger Entry"; DerogDeprBook: Record "Depreciation Book";
All 1,164 lines
Events 31 in 29
| [IntegrationEvent] OnBeforeCalculate(var DeprAmount: Decimal; var NumberOfDays4: Integer; FANo: Code[20]; DeprBookCode2: Code[10]; UntilDate2: Date; EntryAmounts2: array[4] of Decimal; DateFromProjection2: Date; DaysInPeriod2: Integer; var IsHandled: Boolean) | 17-29 |
| [IntegrationEvent] OnAfterCalculateDeprAmount(FixedAsset: Record "Fixed Asset"; SkipOnZero: Boolean; DeprBookCode: Code[20]; var Amount: Decimal; BookValue: Decimal; SalvageValue: Decimal; EndingBookValue: Decimal; FinalRoundingAmount: Decimal) | 17-29 |
| [IntegrationEvent] OnCalcSLAmountOnAfterCalcFromSLPercent(FixedAsset: Record "Fixed Asset"; FADepreciationBook: Record "FA Depreciation Book"; BookValue: Decimal; DeprBasis: Decimal; DaysInFiscalYear: Integer; NumberOfDays: Integer; SLPercent: Decimal; var Result: Decimal) | 17-29 |
| [IntegrationEvent] OnBeforeSkipRecord(FixedAsset: Record "Fixed Asset"; DeprBook: Record "Depreciation Book"; DisposalDate: Date; AcquisitionDate: Date; UntilDate: Date; FADeprMethod: Enum "FA Depreciation Method"; BookValue: Decimal; DeprBasis: Decimal; SalvageValue: Decimal; MinusBookValue: Decimal; var ReturnValue: Boolean; var IsHandled: Boolean) | new in 18 |
| [IntegrationEvent] OnBeforeCalcTransferValueSetVariables(var FirstDate: Date; var Year365Days: Boolean; var UseDeprStartingDate: Boolean; var NumberOfDays2: Integer; var UseHalfYearConvention: Boolean) | new in 18 |
| [IntegrationEvent] UpdateDaysInFiscalYear(FixedAsset: Record "Fixed Asset"; DeprBook: Record "Depreciation Book"; var NumberofDays: Integer; var DaysInFiscalYear: Integer; var IsHandled: Boolean) | new in 18 |
| [IntegrationEvent] OnAfterBookValueCheckAddedDeprApplicable(FADepBook: Record "FA Depreciation Book"; DeprBook: Record "Depreciation Book"; FALedgerEntry: Record "FA Ledger Entry"; UntilDate: Date; var DBPercent: Decimal; var SlPercent: Decimal) | new in 18 |
All 48 events in 17-29
Public procedures 2 in 29
| Calculate(var DeprAmount: Decimal; var NumberOfDays4: Integer; FANo: Code[20]; DeprBookCode2: Code[10]; UntilDate2: Date; EntryAmounts2: array[4] of Decimal; DateFromProjection2: Date; DaysInPeriod2: Integer) | 17-29 |
| CalcDB1Amount(): Decimal | new in 22 |
Changes 2 in 28
| [IntegrationEvent] OnBeforeSetHalfYearConventionMethod(FADeprBook: Record "FA Depreciation Book"; DeprMethod: Enum "FA Depr. Method Internal"; Year365Days: Boolean; FirstDeprDate: Date; NewYearDate: Date; var Result: Boolean; var IsHandled: Boolean) | 26 to 27 |
| gone |
| [IntegrationEvent] OnBeforeSetHalfYearConventionMethod(FADeprBook: Record "FA Depreciation Book"; DeprMethod: Enum "FA Depr. Method Internal"; Year365Days: Boolean; FirstDeprDate: Date; NewYearDate: Date; var Result: Boolean; var IsHandled: Boolean; var NewYearDateOverride: Date) | new in 28 |
| added |
All 62 changes in 17-29