File a pending asset disposal draft (a person approves in Taokeh)
create_asset_disposal_draftFiles a pending draft of Dispose on an asset's page. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval disposes it exactly as the page does: depreciation is brought up to the disposal month, depreciation already posted for any later month is taken back (one entry per month, dated that month-end), then one entry clears the cost and the accumulated depreciation, takes the proceeds into the account named, and books the gain or loss. assetId comes from asset_register. Proceeds go into one of the company's cash or bank accounts (asset_register proceedsAccounts); proceeds that went anywhere else, such as a trade-in against a supplier, are recorded with Dispose on the asset's page. The result carries the accumulated depreciation, the net book value, the gain or loss, any months taken back and every journal line, as the rolled-back run produced them. Refused at filing and approval in the page's words: an asset already disposed, proceeds with no account, a date before the asset was bought or put into use, a date in a locked period (a month to take back included), a date on or before an already-owned asset's start date. Also refused here: proceeds below zero. A second disposal draft for the same asset is refused while one waits; if the asset is depreciated or changed before approval, approval refuses and nothing is posted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"assetId": "<assetId>",
"disposalDate": "<disposalDate>"
},
"name": "create_asset_disposal_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A short note for the reviewer: where the figures came from. | |
| assetId | Yes | The asset, from asset_register. | |
| proceeds | No | What it was sold for, in ringgit; 0 for a write-off. | |
| needsReview | No | true flags the draft for the reviewer. | |
| disposalDate | Yes | The disposal date, YYYY-MM-DD. | |
| proceedsAccountCode | No | The cash or bank account the proceeds went into (asset_register `proceedsAccounts`), when there are proceeds. |