Set employee pay
set_employee_paySet one employee's own pay: rows by line code over the stored ones, codes to remove, and the package and payslip template. Rows not named are kept. Turn on an opt-in line such as eti with included true and since. A tax directive is set in the stub app only: a row naming one is refused, and a stored directive row is kept. Writes no payslip and posts nothing to the ledger.
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": {
"employee": "<employee>"
},
"name": "set_employee_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Pay rows to set, one per line code. Each row replaces the stored row with the same code; codes not sent keep their stored row. amount fixes a line's figure, rate and quantity price a rate line, formula prices it with a formula, excluded true leaves the line off. An opt-in line (get_payroll_setup), such as eti, is turned on with {code, included true, since YYYY-MM}. A tax directive is set in the stub app only. | |
| remove | No | Line codes whose stored rows to remove. A row carrying a tax directive is never removed. | |
| employee | Yes | The employee id, or the employee's name or number. | |
| packagekind | No | How the package is paid. annual, monthly and weekly: packageamount is the pay for that period and packagequantity is not sent. hourly and daily: packageamount is the RATE per hour or day and packagequantity is the normal hours or days per week. "$delete" clears it. | |
| packageamount | No | The package amount; see packagekind. "$delete" clears it. | |
| packagequantity | No | Normal hours or days per week, for an hourly or daily package only. "$delete" clears it. | |
| paysliptemplate | No | The payslip template id or name whose lines this employee's payslips start from. |