Register a fixed asset
books_save_assetPut an asset the business bought in the register, like Xero's fixed assets: a van, a machine, a laptop, with its cost, purchase date and the asset account its purchase was booked to (registering books nothing). method: straight_line over its life down to residual, declining_balance at rate_percent of its book value at the start of each fiscal year, full (all of it in the month it starts, for something cheap enough to write off at once) or none (land). averaging: full_month counts the month it starts in full, actual_days counts days. Depreciation goes to the depreciation expense and accumulated depreciation accounts (made as 6950 and 1590 when missing) unless expense_account and accumulated_account say otherwise. An asset depreciated before the books started brings opening_accumulated. To change one, pass asset: once its depreciation is booked, only its name, description, serial number, warranty and tracking change. Costs $0.001 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | What it cost before tax, in the base currency. | |
| name | No | ||
| asset | No | The asset to change, by its number. Leave out to register one. | |
| method | No | straight_line | |
| number | No | A new asset's number. Default: the next FA-0001. | |
| account | No | The asset account its purchase was booked to, e.g. "1500". | |
| residual | No | What it is worth at the end of its life. Default 0. | |
| tracking | No | Tracking options by category, e.g. {"Department": "Service"} (books_list_tracking). | |
| averaging | No | full_month | |
| life_years | No | ||
| description | No | ||
| life_months | No | ||
| rate_percent | No | Declining balance: the share of its book value a year. | |
| purchase_date | No | YYYY-MM-DD | |
| serial_number | No | ||
| warranty_until | No | YYYY-MM-DD, "" for none. | |
| expense_account | No | An account code from the chart, e.g. "6600". | |
| depreciation_start | No | When it was first used, if after the purchase date. | |
| accumulated_account | No | An account code from the chart, e.g. "6600". | |
| opening_accumulated | No | Depreciation booked before the books started. |