Leave Settlement and Cashing Out Employees’ Leave Balance
The Leave Settlement feature in Daftra lets you pay employees their unused leave balance in cash together with their salary: you set the leave policy so that the remaining balance at the end of the fiscal year is handled as Cash Out, the system calculates the amount from the salary, adds it automatically to the payslip in the next pay run, and closes the paid-out balance. You can also cash out the balance early for an employee who is still working or who is leaving, using Calculate Settlement. This guide explains the main route step by step, then the manual alternative through a salary component, and why the amount may not appear on the payslip and how to fix it.
Quick facts
Required permissions: Manage Attendance Settings to configure the policy and calculate or adjust settlements, Approve Settlements to approve a settlement, Undo Settlement to undo a paid settlement, and View Settlement Report for read-only access. On the payroll side: Manage Payroll Settings for salary components, Create Pay Run, Approve Payslips, Pay Payslips, and Edit Payslips for the manual alternative.
How to get there: Attendance Settings › Leave Settlement card (Leave Settlements list); leave policies from Attendance Settings › Leave Policies; pay runs from Payroll › Pay Runs.
🛈
Note: Leave Settlement belongs to the Attendance app, while the amounts reach payslips through the Payroll app; both apps must be active. Daftra has no separate “leave allowance” screen: a cash payout is done either through this feature or through a salary component.
Contents
Before you start
- Activate the Attendance and Payroll apps. Without Payroll the cash-out amount is calculated as zero and there is no payslip to add it to.
- Make sure the employee has an active Contract that contains a Basic Salary Component, and that the contract currency is the same as the currency of the pay run you will pay from; the system derives the amount from this component and only adds it to a pay run in the same currency.
- Make sure the employee is assigned to the Leave Policy that contains the leave type whose balance you want to pay out, and that the Attendance Fiscal Date is set in Attendance Settings; settlements are built on the attendance fiscal year.
- Close any leave applications in Pending status for this employee (approve or reject them), and make sure there is no approved leave after the settlement date you will choose if you are cashing out early.
- Make sure you have Manage Attendance Settings to calculate and adjust, and Approve Settlements to approve.
Steps
First: set the leave policy to Cash Out
- Open Attendance Settings › Leave Policies, then edit the required policy or click Add Leave Policy for a new one.
- Under Settlement Properties choose Simple to apply one behavior to every leave type in the policy, or Advanced to configure each leave type separately in the Leave Types Allocations table.
- In EoY Behavior choose Cash Out. The default is Expire, which cancels the remaining balance at year end without any payout. If you only want to pay out days above a certain limit, leave the behavior on Carry Over, enter the number of days in Limit, then choose Cash Out in Days Over Limit (the column is called Days Above in Advanced mode).
- Under Cashout Formula review the Cashout Base Amount (Basic Salary by default, or Total Fixed Earnings), Work Days per Month (default 22), and Multiplier (default 1). Amount = days to cash out × (base amount ÷ work days per month) × multiplier.
- Click Save, and make sure the relevant employees are assigned to this policy.
🛈
Warning: The policy applies to settlement records calculated after it is saved. A record that was already calculated with Expire must be changed through Adjust Settlement as in the next steps, or undo its early calculation and calculate it again.
Second: calculate the settlement
- When the attendance fiscal year ends, the system creates a settlement record per employee and leave type in Pending FY End status, then calculates it automatically according to the policy, and its status becomes Pending Settlement. If that is enough for you, go to “Third”.
- To cash out before year end (for an employee still working or a leaver), open Attendance Settings › Leave Settlement, select the current Fiscal Year, find the employee, then choose Calculate Settlement from the row actions.
- In the Calculate Settlement dialog set the Settlement Date: it must not be after today, must fall inside the employee’s fiscal year, and must not be before the contract start date. For each leave type the system shows Accrued, Used and Remaining, then Days to Cash Out and Cashout Value according to the Cashout Formula. Leave the distribution As Per Policy Definition, or choose Manual to split the remaining days yourself between cash out, carry over and expire.
- Click Confirm. The message Settlement calculated successfully. appears and the status changes to Pending Settlement with an Early Settlement flag.
🛈
Note: If the used days exceed the accrued days, the difference appears in Deduction Value instead of Cashout Value, and it is added to the payslip as a deduction rather than an earning.
Third: review and adjust the settlement
- In the Leave Settlement list review the Remaining and Cash Out Amount columns for each employee. If the amount is zero although there are days to cash out, see Troubleshooting.
- To change the distribution, choose Adjust Settlement from the row actions. For each leave type set the number of Cash Out, Carry Over and Expire days so that their total equals the remaining balance; if needed change Work Days per Month, Multiplier and Cashout Base Amount for this record only, and enter an Adjustment Reason.
- Click Confirm. The Cash Out Amount is recalculated immediately and the status stays Pending Settlement.
Fourth: approve the settlement
- From the row actions choose Approve Settlement, then Confirm. You can also select several records and approve them at once with Multi Select.
- The status changes to Settlement Approved when there is a cash-out or deduction amount, or directly to Settled when the amount is zero (carry over or expire only). The Payment Status shows Not Added to Payslip, yet.
🛈
Warning: After approval the leave type is locked for this period: the employee cannot submit a new leave application for it and sees the message listed under Validation rules. To go back, use Undo Approval while the linked payslip is still a draft.
Fifth: create the pay run and confirm pending cash-outs
- Open Payroll › Pay Runs and create a new pay run: choose the Currency (it must match the employee’s contract currency), the Payroll Frequency, and the employees under Employees Selection, then click Save.
- The Confirmation Pending Cash-outs window appears with the message %s employees have pending leave settlement cash-out amounts that will be included in this payrun. and a table with the columns Employee, Cash-out Amount and Action. Leave Include for the employees you want to pay in this run, or choose Exclude to postpone an amount to a later run, then click Confirm and Save.
- The payslips are generated and the message Leave Settlement Cash-Out: Added to %s payslips. appears. Each payslip shows an earning line named after the system component Leave Settlement Earning with the amount, or a Leave Settlement Deduction line in the deduction case. If the employee has more than one approved settlement in the same currency they are combined into one line.
- The settlement’s Payment Status changes to Added to Payslip (Not paid, yet).
🛈
Note: If the employee already has an open (draft) payslip when the settlement is approved, the line is added to it immediately without waiting for a new pay run.
Sixth: approve the payslips and pay the run
- Open the pay run and approve the payslips (Approve Payslips permission). On approval the accounting journal is created, and the leave settlement line is posted to the Default Account set on the salary component, otherwise to the Salaries and Wages account.
- Record the pay run payment from the pay run page with Pay Approved Payslips (Pay Payslips permission).
- Once the payment is saved the settlement changes automatically to Settled, and the Payment Status to Cash out has been paid. The leave allowance has now been paid to the employee in cash as part of the salary.
Alternative route: a manual salary component
Use this route when you want to pay an agreed amount without reference to the leave balance, or when Leave Settlement does not fit your case. Remember that this component is not linked to the leave balance and does not deduct the paid days automatically.
- Open Payroll › Salary Components and click Add New Earning Component (Manage Payroll Settings permission).
- Enter a Name such as “Leave allowance”, set Type to Earning, Status to Active, and choose a Default Account if you want to post it to a separate account.
- Under Value Type choose Amount and enter the fixed amount (or leave it 0 to enter the amount per employee later), then click Save. Amount and Formula cannot be combined in the same component.
- Add the component to the employee in one of two ways: from Contracts open the employee’s contract, use Assign Salary Component and enter the amount; or open the draft payslip from Payslips, edit it and add the component in the earnings section (Edit Payslips permission).
- Create, approve and pay the pay run as usual; the component appears on the payslip like any other earning.
- Deduct the paid days manually from the employee’s balance: open the employee profile › Attendance › Leave Balance › edit the balance, enter the days as a deduction with a note stating they were paid in cash. Details in Update Leave Balance.
🛈
Warning: If you add the component to the Contract it repeats in every future pay run; remove it from the contract after the payout with Remove Salary Component, or add it directly to the payslip for a one-time payout.
Field reference
Settlement fields in the leave policy
| Field | Required/Optional | Default | Values | Description |
|---|---|---|---|---|
| Settlement Properties | Required | Simple | Simple / Advanced | Simple: one setting for all leave types. Advanced: each leave type has its own row in Leave Types Allocations. |
| EoY Behavior | Required | Expire | Expire / Carry Over / Cash Out | What happens to the remaining balance at the end of the attendance fiscal year. Choose Cash Out to pay it in cash. |
| Limit | Optional | No limit | Number of days | Maximum number of days the main behavior applies to; days above it follow the Days Over Limit behavior. |
| Days Over Limit (Days Above in Advanced mode) | Optional | None | One of the other two behaviors | What happens to days above the Limit; for example carry over up to 10 days and cash out the rest. |
| Cashout Base Amount | Required | Basic Salary | Basic Salary / Total Fixed Earnings | The monthly amount the daily rate is derived from: the basic salary component of the active contract, or the total of its fixed earnings. |
| Work Days per Month | Required | 22 | Number | Divisor that converts the monthly amount into a daily rate. |
| Multiplier | Required | 1 | Number | Factor applied to the daily rate; for example 1.5 to pay one and a half days per day. |
| Carryover Settings | Optional | Enabled with carry over | Carryover Days Expiration, Expiration Day | Do not affect the cash payout; they define when carried-over days expire in the next year. |
Settlement record fields
| Field | Required/Optional | Default | Values | Description |
|---|---|---|---|---|
| Employee / Leave Type / Fiscal Year | Automatic | From the policy | — | One record is created per employee and leave type in every attendance fiscal year. |
| Settlement Date | Required for early calculation | Today | Date | The last day up to which the balance is counted. Must not be after today, must be inside the fiscal year, and must not be before the contract start. |
| Accrued / Used / Remaining | Automatic | — | Days | Balance of the leave type up to the settlement date, including Previous FY Carry Over if any. |
| Days to Cash Out / Carry Over Days / Expire Days | Automatic, editable | As Per Policy Definition | Days; total = Remaining | Distribution of the remaining balance. Changed through Adjust Settlement or with Manual mode during calculation. |
| Cashout Value / Cash Out Amount | Automatic | 0 | Amount in contract currency | Days to cash out × (base amount ÷ work days per month) × multiplier. Zero when there is no active contract with a basic salary component. |
| Deduction Value | Automatic | 0 | Amount | Shown instead of the cash-out value when used days exceed accrued days; added to the payslip as a deduction. |
| Adjustment Reason | Optional | — | Text | Stored with Adjust Settlement and shown in the activity log. |
| Settlement Status | Automatic | Pending FY End | Pending FY End › Pending Settlement › Settlement Approved › Settled | Moves forward with calculation, then approval, then pay run payment. |
| Payment Status | Automatic | — | Not Added to Payslip, yet / Added to Payslip (Not paid, yet) / Cash out has been paid. | Tracks where the amount is in the payroll cycle. |
Settings that affect the process
- EoY Behavior in the leave policy: unless it is Cash Out (directly or in Days Over Limit) no amount is calculated, and the whole balance is carried over or expires.
- Cashout Formula (Cashout Base Amount, Work Days per Month, Multiplier): defines the value of one day, and can be overridden for a single record through Adjust Settlement.
- Attendance Fiscal Date in Attendance Settings: defines when settlement records are created and calculated automatically. During the first 45 days of a new year the list shows the previous year by default if it still has unsettled records.
- The active Contract, its Basic Salary Component and its currency: the source of the amount and the condition for including it in a pay run.
- The Default Account on the Leave Settlement Earning and Leave Settlement Deduction components in Salary Components: defines the journal account; without it the Salaries and Wages account is used.
- The Include/Exclude choice in the Confirmation Pending Cash-outs window when creating the pay run: excluding postpones the amount to a later run and does not cancel it.
Validation rules and error messages
| Case | Message | Fix |
|---|---|---|
| Calculating a record that is not Pending FY End | Only settlements pending FY end can be calculated | The record is already calculated; use Adjust Settlement or Undo Early Calculation and calculate again. |
| Settlement date in the future | The settlement date must be a date before or equal to today. | Choose today or an earlier date. |
| Settlement date outside the fiscal year | The settlement date must be within the employee’s fiscal year range. | Choose a date inside the fiscal year selected in the list. |
| Settlement date before the contract start | The settlement date cannot be before the contract start date. | Choose a date after the contract start or review the contract date. |
| Approved leave after the settlement date | The Employee is having an approved leave application after the settlement date selected, remove the leave application and try again. | Choose a date after the last approved leave, or delete the leave application. |
| Pending leave applications in the fiscal year | This action cannot be completed. The following leave requests must be approved or rejected first: followed by the request numbers | Approve or reject the listed requests and try again. |
| Adjusting a record that cannot be adjusted | Only settlements pending settlement with remaining credit can be adjusted | Adjustment is only available in Pending Settlement status with a remaining balance above zero. |
| Approving a record in another status | You cannot approve when the leave settlement status is not pending settlement | Calculate the settlement first. |
| Undoing approval of an unapproved record | You cannot undo approval when the leave settlement status is not settlement approved | There is nothing to undo; check the status. |
| Undoing approval after the payslip was approved | The linked payslip is no longer a draft and cannot be updated. | Unapprove the payslip first, then undo the approval. |
| Undoing a settlement linked to an approved payslip | This settlement cannot be undone because it is linked to an approved payslip. Undo the payslip approval to be able to undo this settlement. | Delete the pay run payment and unapprove the payslip, then use Undo Settlement. |
| Employee submits leave on a settled leave type | You cannot submit this leave request. This leave type is closed for this period because its settlement has already been adjusted or approved. | Undo the approval if the payout was not intended, or submit the request in the next fiscal year. |
| Deleting a policy with unfinished settlements | This leave policy cannot be deleted because it has unfinalized settlement records. | Finish the settlements (approve and pay) before deleting the policy. |
| Manual salary component with a negative amount | This Field Should Be Greater Than or equal to Zero | Enter a positive value; for a deduction create a Deduction component. |
Restrictions and blocked cases
- No cash-out amount is calculated for an employee without an active Contract or with a contract that has no Basic Salary Component; the amount shows zero and the record closes as Settled without payout as soon as it is approved.
- The amount is only added to a pay run in the same currency as the employee’s contract, and never to a payslip that is already approved.
- The Leave Settlement Earning and Leave Settlement Deduction components cannot be picked manually when adding a component to a payslip; only the system adds them.
- After a settlement is adjusted or approved, the leave type is closed for this period for new leave applications.
- Early calculation is only available for records in Pending FY End status, and can only be reverted with Undo Early Calculation before approval.
- Undo Settlement is blocked when the linked payslip is approved or paid, or when the used days were moved to another leave type.
- With the Branches app, only records of employees in branches the user can access are shown.
- The alternative route (manual salary component) does not deduct from the leave balance and does not stop the employee from using the same days later unless you adjust the balance manually.
Permissions
| Action | Permission |
|---|---|
| Configure the leave policy, calculate and adjust settlements, undo early calculation, view the list | Manage Attendance Settings |
| Approve a settlement and undo approval | Approve Settlements (or Manage Attendance Settings) |
| Undo a settlement in Settled status | Undo Settlement (or Manage Attendance Settings) |
| View the settlements list only | View Settlement Report |
| Create a manual salary component and change the default account of the system components | Manage Payroll Settings |
| Create a pay run and a manual payslip | Create Pay Run |
| Edit a payslip and add a component to it | Edit Payslips or Edit His Department Payslips |
| Approve payslips and pay the run | Approve Payslips then Pay Payslips |
| Add a component to a contract | Add Payroll Contract and the contract editing permissions |
What happens after saving
- After calculation: the status changes to Pending Settlement, the cash-out, carry-over and expire days and the cash-out amount are stored, and the action is written to the activity log.
- After approval: the status changes to Settlement Approved (or Settled when the amount is zero), carry-over days are added to next year’s balance, the leave type is locked for the period, and the amount is added immediately to the draft payslip if one exists.
- After the pay run is created: a Leave Settlement Earning or Leave Settlement Deduction line appears on the payslip, the settlement record is linked to that payslip, and the Payment Status becomes Added to Payslip (Not paid, yet).
- After the payslip is approved: the payroll journal is created; the amount is posted to the component’s Default Account or to the Salaries and Wages account, and the net salary to the employee’s payable account.
- After the pay run is paid: the settlement changes to Settled and the Payment Status to Cash out has been paid. If the payment is deleted later, the settlement returns to Settlement Approved automatically.
- Undo: Undo Approval removes the line from the draft payslip and returns the status to Pending Settlement; Undo Settlement steps the record back one stage from Settled provided the payslip is not approved.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| The whole balance shows under Expire Days and there are no days to cash out | The policy is on Expire (the default) | Change EoY Behavior to Cash Out, or change the record through Adjust Settlement. |
| Cash Out Amount is zero although there are days to cash out | No active contract, the contract has no Basic Salary Component, or the Payroll app is not active | Create an active contract with a basic salary component above zero, then undo the early calculation and calculate again or use Adjust Settlement. |
| The settlement is Settlement Approved but the amount is not on the payslip | The pay run currency differs from the contract currency, Exclude was chosen in Confirmation Pending Cash-outs, or the payslip was created before the approval and already approved | Create a pay run in the contract currency and choose Include; or unapprove the draft payslip and save it again. |
| The Calculate Settlement action is missing | The record is not Pending FY End, or you lack Manage Attendance Settings | Check the status and the selected fiscal year, and request the permission. |
| Calculation fails because of leave applications | Pending requests, or an approved leave after the settlement date | Approve or reject the requests, or choose a later settlement date. |
| The employee cannot submit a leave application | The leave type is locked after the settlement was adjusted or approved | Expected after a payout; otherwise use Undo Approval. |
| The manual component repeats every month | It was added to the Contract rather than the payslip | Remove it from the contract after the payout or add it to the payslip only. |
| The allowance was paid manually but the leave balance did not decrease | A manual salary component is not linked to the balance | Deduct the days through the employee’s Leave Balance in the profile, or use Leave Settlement instead of a manual component. |
| The Leave Settlement card is missing from Attendance Settings | The Attendance app is not active, or you have neither Manage Attendance Settings nor View Settlement Report | Activate the app and request the permission. |
FAQ
How do I pay employees their leave allowance in cash?
Set EoY Behavior in the leave policy to Cash Out, then from Attendance Settings › Leave Settlement calculate the settlement (automatically at year end or early with Calculate Settlement), review it, and choose Approve Settlement. When the next pay run is created in the contract currency the amount appears on the payslip automatically as the Leave Settlement Earning component and is paid with the salary. See Steps.
Can I cash out the leave allowance for an employee who is still working?
Yes; the feature is not limited to leavers. Use Calculate Settlement at any time during the fiscal year with a settlement date that is not after today and not before the contract start, provided there are no Pending leave applications or approved leave after that date. After approval the leave type is locked for this period for new applications.
Why is the cash-out amount zero?
Because the system derives the amount from the Basic Salary Component of the employee’s active Contract (or from the total fixed earnings); if there is no active contract, the contract has no basic component, or the Payroll app is not active, the base is zero. The other reason is that the policy is on Expire, so there are no days to cash out at all. Fix the contract or the policy, then calculate again or use Adjust Settlement.
Why did the amount not appear on the payslip?
The amount is only added when the settlement is Settlement Approved with a non-zero amount, the pay run is in the same currency as the employee’s contract, Exclude was not chosen in the Confirmation Pending Cash-outs window, and the payslip was not approved before the settlement was approved. Check these conditions; if the payslip is still a draft, save it again so the line is added.
Can I pay the amount through a regular salary component?
Yes; create an earning component in Salary Components with value type Amount, and add it to the employee’s contract or directly to the payslip. However, this component is not linked to the leave balance and does not deduct it; you must deduct the days manually through the employee’s Leave Balance in the profile. See the alternative route.
How is the amount calculated?
Amount = days to cash out × (base amount ÷ work days per month) × multiplier. By default the base is Basic Salary, work days are 22, and the multiplier is 1. Example: basic salary 6,600 and 10 days to cash out: 10 × (6,600 ÷ 22) × 1 = 3,000. If used days exceed accrued days, the difference is calculated as a deduction with the same formula.
Can I cash out part of the balance and carry over the rest?
Yes, in two ways: in the policy set the behavior to Carry Over with a Limit and Days Over Limit = Cash Out; or for a single record use Adjust Settlement and split the days between cash out, carry over and expire so that the total equals the remaining balance.
How do I reverse a payout that was already approved?
If the payslip is still a draft choose Undo Approval; the line is removed from the payslip and the settlement returns to Pending Settlement. If the payslip was approved or the run was paid, delete the payment and unapprove the payslip first, then use Undo Settlement (Undo Settlement permission).