asset_depreciation_schedule
Project a single asset's remaining depreciation schedule period-by-period, with net book value and final residual adjustment; include units forecast for units-of-production assets.
Instructions
Project the full remaining depreciation schedule for ONE asset from fromPeriod (YYYY-MM, inclusive) to an optional toPeriod, using the same pure engine as the preview so a line never disagrees with a live preview. Returns ordered ScheduleLine rows (period, amountRappen, projectedAccumRappen, projectedNbvRappen, isFinal); the final line residual-adjusts so the lines sum to exactly cost minus residual. A units_of_production asset needs a unitsForecast map (period to units) or the projection returns incomplete with a units_forecast_required warning rather than inventing usage. Writes nothing; a foreign assetId is not_found (§H-TENANT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| assetId | Yes | ||
| proRata | No | ||
| toPeriod | No | ||
| fromPeriod | Yes | ||
| workspaceId | Yes | ||
| unitsForecast | No |