Codeunit 5605 "Calculate Disposal"
Base Application · Microsoft.FixedAssets.FixedAsset
Across versions
- BC23-24present
- BC252 events added
- BC261 procedures changed, 1 procedures added
- BC27-28unchanged
- BC291 procedures removed
- BC30unchanged
Neighbourhood 3 connected objects and pages
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): IntegerSetFALedgerPostingCategory(i: Integer): Enum "FA Ledger Posting Category"+ BC26SetReverseType(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.
- Codeunit 5616 “Depreciation Calculation” (5 calls:
CalcGainLoss → CalcEntryAmounts,CalcGainLoss → GetPartOfCalculation,CalcReverseAmounts → CalcEntryAmounts, …)
Called by
- Codeunit 5632 “FA Jnl.-Post Line” (8 calls:
PostDisposalEntry → CalcGainLoss,PostDisposalEntry → CalcSecondGainLoss,PostDisposalEntry → GetDisposalType, …) - Report 5607 “Fixed Asset - Projected Value” (1 call:
CalculateGainLoss → CalcGainLoss)
Countries that replace it
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.