Codeunit 5605 Calculate Disposal

Base Application, Microsoft.FixedAssets.FixedAsset

Source AL, 374 lines

src/Layers/W1/BaseApp/FixedAssets/FixedAsset/CalculateDisposal.Codeunit.allines 12 to 27 of 374, Copyright (c) Microsoft Corporation. MIT

codeunit 5605 "Calculate Disposal"{    Permissions = TableData "FA Ledger Entry" = r,                  TableData "Maintenance Ledger Entry" = r;    trigger OnRun()    begin    end;    var        FA: Record "Fixed Asset";        DeprBook: Record "Depreciation Book";        FADeprBook: Record "FA Depreciation Book";        DepreciationCalc: Codeunit "Depreciation Calculation";    procedure CalcGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal)

All 374 lines

Events 10 in 29

[IntegrationEvent] OnCalcGainLossOnAfterSetEntryAmounts(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal)17-29
[IntegrationEvent] OnAfterSetEntryAmountsOnBeforeGainLoss(FANo: Code[20]; FADeprBook: Record "FA Depreciation Book"; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal; var GainLoss: Decimal; var IsHandled: Boolean)new in 18
[IntegrationEvent] OnAfterGetDisposalMethod(var DisposalMethod: Option " ",Net,Gross)new in 20
[IntegrationEvent] OnBeforeCalcGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal)new in 20
[IntegrationEvent] OnAfterSetFAPostingType(i: Integer; var FALedgerEntry: Record "FA Ledger Entry")new in 22
[IntegrationEvent] OnAfterSetFAPostingCategory(i: Integer; var FALedgerEntry: Record "FA Ledger Entry")new in 22
[IntegrationEvent] OnGetDisposalTypeSetOnAfterSetFilterFALedgEntry(var FALedgerEntry: Record "FA Ledger Entry")new in 22

All 10 events

Public procedures 8 in 29

CalcGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal)17-29
CalcSecondGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; LastDisposalPrice: Decimal; var EntryAmounts: array[14] of Decimal)17-29
CalcReverseAmounts(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[4] of Decimal)17-29
GetDisposalType(FANo: Code[20]; DeprBookCode: Code[10]; ErrorNo: Integer; var DisposalType: Option FirstDisposal,SecondDisposal,ErrorDisposal,LastErrorDisposal; var DisposalMethod: Option " ",Net,Gross; var MaxDisposalNo: Integer; var SalesEntryNo: Integer)17-29
GetErrorDisposal(FANo: Code[20]; DeprBookCode: Code[10]; OnlyGainLoss: Boolean; MaxDisposalNo: Integer; var EntryAmounts: array[14] of Decimal; var EntryNumbers: array[14] of Integer)17-29
SetFAPostingType(i: Integer): Integer17-29

All 9 procedures in 17-29

Changes 1 in 29

List17181920212223242526272829
Procedures21
Events1242
SetFAPostingCategory(i: Integer): Integergone after 28
gone

All 12 changes in 17-29