Sell or write off an asset
books_dispose_assetTake an asset out of the books, sold or written off, like Xero's dispose. Its depreciation is booked through the month it goes first (to the day with actual_days; what was booked for later months is undone), then one entry takes its cost and accumulated depreciation out, books price to paid_to and the difference as a gain or a loss on gain_account (made as 4950 Gains and losses on assets sold when missing). paid_to is the bank account the money went to, or the income account the invoice to the buyer booked it to, which this then clears. A write-off has no price. undo: true brings it back. Costs $0.01 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD | |
| undo | No | Bring a sold or written off asset back. | |
| asset | Yes | The asset's number, like "FA-0001" (books_list_assets). | |
| price | No | What it sold for before tax. Default 0, a write-off. | |
| paid_to | No | Where the price went, e.g. "1010". | |
| catch_up | No | ||
| gain_account | No | An account code from the chart, e.g. "6600". |