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

Codeunit 5605 "Calculate Disposal"

Base Application · Microsoft.FixedAssets.FixedAsset

Across versions

  1. BC23-24present
  2. BC252 events added
  3. BC261 procedures changed, 1 procedures added
  4. BC27-28unchanged
  5. BC291 procedures removed
  6. BC30unchanged

Neighbourhood 3 connected objects and pages

Codeunit 5632 "FA Jnl.-Post Line" (calls, 8 links)FA Jnl.-Post LineCodeunit 5616 "Depreciation Calculation" (calls, 5 links)Depreciation CalculationReport 5607 "Fixed Asset - Projected Value" (calls)Fixed Asset - Projected Value

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.FixedAsset · BC23-30 · source at ea08af5e · facts from BC29

Properties

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

Events published

  • OnCalcGainLossOnAfterSetEntryAmounts(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal) (integration)
  • OnAfterSetEntryAmountsOnBeforeGainLoss(FANo: Code[20]; FADeprBook: Record "FA Depreciation Book"; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal; var GainLoss: Decimal; var IsHandled: Boolean) (integration)
  • OnAfterGetDisposalMethod(var DisposalMethod: Option " ",Net,Gross) (integration)
  • OnCalcSecondGainLossAfterCalcFieldGainLoss(var FADeprBook: Record "FA Depreciation Book") + BC25 (integration)
  • OnCalcReverseAmountsBeforeSetEntryAmounts(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[4] of Decimal; BookValueAmounts: array[4] of Decimal; var IsHandled: Boolean) + BC25 (integration)
  • OnBeforeCalcGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal) (integration)
  • OnAfterSetFAPostingType(i: Integer; var FALedgerEntry: Record "FA Ledger Entry") (integration)
  • OnAfterSetFAPostingCategory(i: Integer; var FALedgerEntry: Record "FA Ledger Entry") (integration)
  • OnGetDisposalTypeSetOnAfterSetFilterFALedgEntry(var FALedgerEntry: Record "FA Ledger Entry") (integration)
  • OnGetErrorDisposalOnAfterSetFilterFALedgEntry(var FALedgerEntry: Record "FA Ledger Entry") (integration)

Procedures

  • CalcGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[14] of Decimal)
  • CalcSecondGainLoss(FANo: Code[20]; DeprBookCode: Code[10]; LastDisposalPrice: Decimal; var EntryAmounts: array[14] of Decimal)
  • CalcReverseAmounts(FANo: Code[20]; DeprBookCode: Code[10]; var EntryAmounts: array[4] of Decimal)
  • 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)
  • GetErrorDisposal(FANo: Code[20]; DeprBookCode: Code[10]; OnlyGainLoss: Boolean; MaxDisposalNo: Integer; var EntryAmounts: array[14] of Decimal; var EntryNumbers: array[14] of Integer)
  • SetFAPostingType(i: Integer): Integer
  • SetFALedgerPostingCategory(i: Integer): Enum "FA Ledger Posting Category" + BC26
  • SetReverseType(i: Integer): Integer

Plus 2 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

Countries that replace it

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

Evidence 1 sources