Save payslip
save_payslipCreate or edit a DRAFT payslip: employee, pay run, period, pay date and the earning, deduction and contribution lines. Omit id to create; pass an id to edit that payslip. A created payslip is always a draft and an edit never changes the draft flag, so this never posts to the ledger; a finalised payslip refuses an edit. A payslip on a pay run that finalises itself on its pay date is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| lines | No | ||
| notes | No | ||
| payrun | No | ||
| paydate | No | ||
| employee | No | ||
| periodend | No | ||
| periodstart | No |