Thanks for sharing that plugin Alok, exactly what I needed (subject to a few changes).
Since I couldn't add contributions to that snippet, I made a new version of it here:
It adds a couple features:
- option to add a subaccount to the depreciation expense.
ie: instead of Expenses:Depreciation, option to break out the depreciation between different categories (Expenses:Depreciation:Printer, Expenses:Depreciation:Computer, etc).
- option to add subaccount to the asset.
ie: instead of the depreciation being applied directly to Assets:Printer, it is applied to Assets:Printer:Depreciation, so you can see the book value of the asset and accumulated depreciation.
- "CRA" depreciation method. Calculation used by the Canada Revenue Agency - applies 50% depreciation if the asset was purchased during the fiscal year.
- Ability to adjust individual years by arbitrary multiplier.
My business had a shortened fiscal year in its first year of business. I used this to reduce depreciation to 340/365 days.