Once you can report cost and accumulated depreciation, the next questions are the lifecycle ones: what did we dispose of this year, what moved between properties, and why did depreciation on an asset change mid-life? Each of those has an intuitive-sounding table that does not exist — retirement is not a transaction row, and a depreciation adjustment is not a row in the depreciation schedule.
The mechanics below were verified live against Voyager, including an adjustment-classification rule that survived one round of profiling and was overturned by a fuller one.
There is no disposal table
The expected design would be a disposal table with a date, proceeds, and a link to the asset. Yardi does not work that way. A retirement is stamped on the asset master: MMASSET.DTRETIRED carries the retirement date and MMASSET.iRetiredReason carries the reason code. There is no separate record of the event, so a disposal register is a query against the register itself, filtered on the retirement columns.
iRetiredReason is one of the few fixed-asset columns with an install-invariant decode, shipped in the standard Voyager view vspol_fixedassetdata:
| Code | Label |
|---|---|
| 0 | InUse |
| 1 | Sold |
| 2 | Exchanged |
| 3 | Retired |
| 4 | Abandoned |
| 5 | Scrapped |
| 6 | InvoluntaryConv |
The trap is code 0: 0 means InUse, the default state on an active asset rather than a reason code. So the obvious filter — retired assets are the ones with a reason, iRetiredReason > 0 — is wrong in a way that looks reasonable, and it invites the mirror error of treating a missing reason as evidence of an active asset. The reliable test is the date column:
SELECT a.iRetiredReason,
a.DTRETIRED,
a.SCODE AS asset,
a.CPRICE AS cost,
ISNULL(SUM(CASE WHEN d.dtEndPeriod <= a.DTRETIRED THEN d.dAmount END), 0) AS accum_depr_at_retire,
a.CPRICE - ISNULL(SUM(CASE WHEN d.dtEndPeriod <= a.DTRETIRED THEN d.dAmount END), 0) AS nbv_at_retire
FROM MMASSET a
LEFT JOIN icAssetDepreciationDetail d ON d.hAsset = a.HMY
WHERE a.DTRETIRED IS NOT NULL
GROUP BY a.iRetiredReason, a.DTRETIRED, a.SCODE, a.CPRICE
ORDER BY a.DTRETIRED DESC
That query produces the gain/loss basis: nbv_at_retire is cost minus accumulated depreciation only through the retirement date, the figure a sale-proceeds comparison starts from. The accumulation is bounded by a.DTRETIRED per asset rather than a single as-of date, because the depreciation detail is a schedule that runs into future periods — anything summed past the retirement date is depreciation for an asset that no longer existed.
One caveat on the decode: the shipped label set covers 0 through 6, and codes outside that range do appear in live data. Treat an out-of-range value as undocumented rather than forcing it into the nearest label.
Adjustments are not in the depreciation schedule
icAssetDepreciationDetail has a bIsAdjustment flag, which makes it look as though mid-life depreciation adjustments land there. They do not — the flag is typically 0, including on assets that clearly do have adjustments. Changes to an asset's depreciated value or recovery period live in a separate table, icAssetDepreciationAdjustment, one row per change, keyed to the asset by hAsset and to the affected book by hAssetDeprBook.
Each row is a before/after snapshot rather than an event log. It carries three FROM/TO pairs — dDepreciatedValueFrom / To, dRecoveryPeriodFrom / To, and dtLastPostedEndPeriodFrom / To — plus iAdjustmentType and a free-text sNotes.
Classify the adjustment by which pair actually moves
iAdjustmentType has no shipped decoder view or procedure; the fixed-assets manual names the adjustment kinds (recovery-period change, new-book-value adjustment, and a reversal for a method or convention change that back-posts reversing entries) without publishing numeric codes. The type number alone is therefore not enough to classify a row — and on a live book it is misleading.
The verified behavior: adjustment rows commonly collapse to a single iAdjustmentType value whose value and recovery pairs are both 0, with only dtLastPostedEndPeriodFrom / To moving — the period moving backwards, from a later last-posted period to an earlier one. That is a depreciation last-posted-period roll-back: Voyager rolls the last-posted period back so that depreciation re-posts up to the month of a lifecycle event. It is not a recovery-period or life reclass, and it is not a value write-up or write-down.
That distinction survived one profiling round and was corrected by a fuller one: an earlier reading of the same table concluded from dDepreciatedValueFrom = dDepreciatedValueTo that the rows were life reclasses. The error was reading only the two value/recovery pairs — both unused — and never the dtLastPostedEndPeriod pair. The rules to carry forward:
- Classify by which FROM/TO pair moves, corroborated by
sNotes— never by the numericiAdjustmentTypealone. - The free-text
sNotesnames the trigger (asset sale, asset disposal, asset transfer to a new asset, manual depreciation adjustment), and it is the closest thing to a reason code on the row. - The roll-back rows corroborate the retirement and transfer events rather than carrying the value change — the value delta comes from the re-posted depreciation detail, not this table.
A live reconciliation confirms the shape: roll-back rows whose sNotes names a disposition sit on retired assets, while the manual-adjustment category splits across active and retired ones. The roll-back window brackets the event month — from the prior last-posted period to the disposal month, or the month before for a sale — so only the dispositions whose depreciation had already been posted up to or past the event month carry a roll-back row at all.
Transfers and splits
Transfers leave a clearer trace, in three tables:
FaTransferHistory— the property or segment transfer.hPropertytoPROPERTY,dtTransferDate, thebNBVTransferflag, and 12sSegmentNcolumns if the transfer also moved departmental segments.FaTransferToNewAssetHistory— a net-book-value move onto a new asset record:hNewAssettoMMASSET, thedAmount,bBookWiseNBVTransfer, and asReason. This is the event that pairs with a transfer roll-back, including transfers into new construction work-in-progress destination assets.FaSplitAssetHistory— an asset split, withhAssetandhSplitAssetboth pointing atMMASSETanddAssetAmount/dSplitAssetAmountcarrying the split.
Because a transfer or split changes which asset record owns the remaining basis, a roll-forward that ignores these tables will show a cost change with no explanation.
Capitalization has its own bridge
Asset cost is bridged to the GL through FaGLAsset and FaGLAssetDet, where hFaGLAsset points back to the header, hDetail points to the GL DETAIL line, and dDNAmount carries the amount. That is the table to use for capitalizations actually posted in Voyager — and it is not a reconciliation of total asset cost. Historical cost is commonly migrated straight into MMASSET.CPRICE as an opening balance and never posted through FaGLAsset, so SUM(FaGLAssetDet.dDNAmount) covers only the Voyager-era portion of the register — the same migration pattern that makes the depreciation subledger exceed GL-posted depreciation. Reconcile in-Voyager capitalizations through FaGLAssetDet, and treat MMASSET.CPRICE as the authoritative cost figure.
One ySQL syntax note before you write any of this
ySQL runs T-SQL grammar, so a bare reserved word as a column alias fails — AS Trigger, AS User, AS Key and similar produce a syntax error rather than a helpful message. Bracket the alias or rename it; it is easy to mistake for a permissions problem.
Reading the lifecycle without chasing nonexistent tables
The pattern across all of it is that fixed-asset events are stored as state on the master (retirement, adjustment snapshots) or in separate history tables (transfers, splits) — never as rows in the depreciation schedule. Filter retirements on DTRETIRED IS NOT NULL, bound accumulation to the event date, classify adjustments by which snapshot pair moves, and reconcile capitalization through FaGLAssetDet knowing it only covers Voyager-era postings.
PropETL's SQL Assistant carries these as verified, execution-tested patterns rather than guesses reconstructed from column names — including the corrected roll-back classification, so the query it drafts does not reproduce the reading a fuller profiling pass overturned. It is included in every tier, including the free 7-day trial — ask it for a disposition register or an asset transfer history and check the accumulation bounds yourself.
