Skip to content
Version 2.4.0Try demo
Time & Leave

The Leave Ledger and Resets ​

The Leave Ledger explains a balance: where each day came from, where it went and what is coming up. This page also covers how balances reset.

The ledger answers "why does this person have 5 days?". Click the Leave Ledger icon at the end of a balance's row. A panel opens beside the list.

Leave Ledger panel with the current balance, upcoming events and the list of past changes

  1. Current balance, carryforward and Next Reset
  2. Upcoming
  3. The ledger rows

The top shows Current balance (available plus carried forward) and Carryforward. A Next Reset box sits under them. It gives the date, how far away it is (Today, In N days or Overdue) and the balance after it. Upcoming is a forecast of what will happen to the balance and has not happened yet. It lists the Leave Reset with its change, here +24 on 31 December 2026, and, for a leave type whose carryforward expires, the Carry Forward Expiry with how many days will lapse, or Nothing to expire. Nothing in it is applied.

Below that, every change is a row, newest first. Each row shows what happened, the date, the days added in green or taken in red, and the balance after it.

RowWhat it means
Initial assignmentThe leave type was assigned and the balance started with its allowance.
Initial carryforwardThe balance started with carried-forward days, for example imported from another system.
Leave taken (dates)An approved leave took days off. A tag such as Incl. 5 from carryforward says how many came from carried-forward days.
Leave ResetA reset ran. The row shows the allowance before and after and how many days were carried forward.
Carryforward ExpiredCarried-forward days lapsed. The row says how many. The expiry also puts Available Days back to the leave type's Total Days.
Leave RefundedA leave that had been charged to a future cycle was rejected or cancelled and its days were given back.
Balance updatedThe days changed for another reason: an edit, a bulk update, an approved allocation or compensatory request, or a rejected leave giving days back.

Resets and expiries carry a tag for who applied them: Scheduled for the background job, or Manual with the name of the person who ran it. A row tagged Provided was brought forward when a forecasted leave was approved. It is dated by the reset it stands for, not by the approval day.

Ledger of a balance that has a forecasted leave approved, with provided rows

  1. The balance with its note "After 10 Days Provided Ahead"
  2. The leave taken with its carryforward tag
  3. The provided leave reset

When an approval that brought the balance forward is later undone, and nothing else has changed the balance, it goes back to exactly what it was. Those provided rows, the leave's row and the undo cancel out, and none are listed. If the balance has changed since, the days are simply added back and a Leave Refunded row records it.

The ledger is built from the balance's own history plus every approved leave. Reading it never changes a balance. If its numbers do not add up to the live balance, the data was changed outside the normal screens, for example leave imported without taking days off. Such a leave gets its own row so it is not hidden.

How balances reset ​

On schedule. For every leave type with Reset Leave Balance on, a background job runs every four hours. For each balance whose reset date has arrived it moves the unused days into carryforward up to the maximum, sets Available Days to the Total Days, works out the next reset date and writes a Leave Reset row tagged Scheduled. For Carry Forward with Expire, the same job checks each balance's expiry date. When it has passed, carried-forward days drop to zero and the next expiry date is set by the leave type's expiry method. A balance is never expired twice for the same date.

When a reset is missed. If the job could not run, for example because the server was down, the balance is overdue. You see this in three places.

Ledger of an overdue balance with a Run reset button and an Overdue badge

  1. Run reset
  2. Next Reset marked Overdue
  3. Upcoming with its Overdue badge
  • A red dot on the balance's Leave Ledger icon in the list.
  • An Overdue badge and a Run reset button inside the ledger.
  • An active Run missed resets icon on the leave type's row.

Left alone, the scheduler applies the overdue reset the next time it runs, so these are for catching up sooner.

Run a missed reset for one person. In the ledger, click Run reset and confirm Run the missed reset for this leave balance now?. The overdue reset and expiry are applied and the panel refreshes. If nothing is due by then, you see No reset is due for this leave balance. This needs permission to change leave balances.

Run missed resets for a whole leave type. See Run missed resets.

A reset run by hand does exactly what the scheduler would have done, with the next reset counted from today. It is recorded as Manual.

Ledger with a manual reset tagged with the name of the person who ran it

  1. A balance edit
  2. A reset run by hand with its Manual tag
  3. The initial assignment

See also ​

You're readingLeave · Horilla 2.4.0