File a pending draft voiding leave an admin recorded (a person approves in Taokeh)
create_leave_void_draftFiles a pending draft of Void on the Leave page, for leave an admin recorded. It is how recorded leave is corrected: void it, then record it again with create_leave_draft. leaveId comes from leave_register (voidableByDraft). Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh; approval voids it exactly as the page does and the days go back into the balance. Refused at filing and approval in the page's words: leave the employee applied for themselves (cancelled before it starts, or ended early with Return early, on the Leave page), leave already cancelled, unpaid leave in a month whose payroll run is finalized or posted. One void draft per leave waits at a time. Admin, or bookkeeper with the payroll role, only; any other connection is refused.
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": {
"leaveId": "<leaveId>"
},
"name": "create_leave_void_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A short note for the reviewer: where the figures came from. | |
| leaveId | Yes | The recorded leave, from leave_register. | |
| needsReview | No | true flags the draft for the reviewer. |