## Overview Implement an asset depreciation calculation endpoint that computes the current book value using straight-line depreciation inside `backend/contrib/`. ## Location All work must be inside `backend/contrib/src/assets/`. ## Acceptance Criteria - [ ] `GET /assets/:id/depreciation` endpoint implemented - [ ] Calculates straight-line depreciation: `(purchasePrice - salvageValue) / usefulLifeYears` - [ ] Default useful life: 5 years, default salvage value: 10% of purchase price - [ ] Returns: `{ purchasePrice, currentBookValue, totalDepreciation, depreciationPerYear, ageInYears, percentDepreciated }` - [ ] Returns 400 if asset has no `purchasePrice` or `purchaseDate` - [ ] Endpoint protected by `JwtAuthGuard`
Overview
Implement an asset depreciation calculation endpoint that computes the current book value using straight-line depreciation inside
backend/contrib/.Location
All work must be inside
backend/contrib/src/assets/.Acceptance Criteria
GET /assets/:id/depreciationendpoint implemented(purchasePrice - salvageValue) / usefulLifeYears{ purchasePrice, currentBookValue, totalDepreciation, depreciationPerYear, ageInYears, percentDepreciated }purchasePriceorpurchaseDateJwtAuthGuard