File a pending draft registering a purchase on the asset register (posts nothing)
create_asset_draftFiles a pending draft that puts a purchase already in the books on the Fixed Assets register, as "Add to the register" does from the waiting list. It posts nothing, at filing or at approval: the purchase (an expense, a bill or a bank line on a fixed-asset account) is already in the books, and its cost, asset account and purchase date come from that line. lineId is one of asset_register waiting; the rest is the register row: name, category, in-service date (default: the purchase date), residual value, and the method with its life or rate. Nothing is saved until an admin or bookkeeper approves in Taokeh. Refused at filing and approval in the form's words: a line no longer waiting or already registered, a residual not below the cost, an in-service date before the purchase, a straight-line asset with no life, a reducing-balance asset with no rate or one above 100%. A second draft for the same purchase line is refused while one waits, naming it. An asset bought on hire purchase or a loan, or one owned before the books started, is added on the New asset form in Taokeh; a cash, bank or card purchase is an expense first (create_expense_draft), then registered here.
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": {
"lineId": "<lineId>",
"name": "<name>",
"method": "<method>"
},
"name": "create_asset_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| name | Yes | The asset's name. | |
| note | No | A short note for the reviewer: where the figures came from. | |
| lender | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| lineId | Yes | The purchase line waiting to be registered (asset_register `waiting[].lineId`). | |
| method | Yes | The depreciation method. | |
| source | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| ratePct | No | Reducing balance: the annual rate %, above 0 and up to 100. | |
| category | No | An optional category, e.g. Motor vehicles. | |
| createLoan | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| needsReview | No | true flags the draft for the reviewer. | |
| depositAmount | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| inServiceDate | No | The date it went into use, YYYY-MM-DD (default: the purchase date). | |
| residualValue | No | The residual value in ringgit; 0 when none. | |
| acquisitionDate | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| assetAccountCode | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| usefulLifeMonths | No | Straight-line: the useful life in whole months. | |
| depositAccountCode | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| financedByAccountCode | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. | |
| depreciationAlreadyTaken | No | Not a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh. |