Late Arrival & Early Departure
This page lists the late arrivals and early departures that Horilla flags, and is where a manager can add a penalty.

Every flagged late arrival or early departure.
Attendance → Late Arrival & Early Departure lists the flags created automatically at check-in and check-out. It is a single list (no tabs). The columns are Employee, Type (Late Arrival or Early Departure), Attendance Date, Check-In, Check-Out, and, from the column chooser, In Date, Out Date, Min Hour, At Work and Penalties (a count that links to the penalties). The filter includes Validated? and OT Approved? switches. Clicking a row opens a Details pop-up.
The sidebar entry is hidden when Track Late Arrival & Early Departure is off, and no new flags are created. Existing records stay. The page address itself still opens even then.
Penalties
There is no automatic penalty. A person decides.

Adding a penalty for a late or early record.
The yellow Penalty button on a row opens a form with Leave type (only types the employee has a balance for), Deduct Leaves (rounded to half days), Deduct from Carry Forward (take it from carried-forward days first), and Penalty Amount (a fine that affects the payslip). A table shows the employee's available and carry-forward days. Saving shows "Penalty/Fine added". A leave type is optional when the days to deduct are 0. More than one penalty can be added to the same record. The deducted days come off the employee's balance in the Leave module, and deleting the late or early record also removes the penalties linked to it. The Remove button deletes the late or early record only (its confirmation says "attendance", but the attendance is not deleted).
Seeing your own penalties (employee view)

An employee's own Penalty Account tab, with the penalties added to them.
An employee does not need HR to find out what was deducted. Every employee can see their own penalties under My Profile → Penalty Account (open the profile from the user menu at the top right). The same tab is on every employee's profile for HR and managers.
Each penalty is one row:
- Leave Type: the leave type the days were taken from.
- Minus Days: how many days were deducted.
- Deducted From CFD: Yes if they came from carry-forward days, No otherwise.
- Penalty amount: the fine that affects the payslip (0.0 when only leave was deducted).
- Date: the date of the late or early record.
- Penalty Type: "Late come or Early out".
- Applied For: which record it was for, for example "Late Arrival" with its date.
The matching leave balance is under Leave. If the tab is empty, nothing has been deducted. A penalty is added by a manager from Late Arrival & Early Departure (see Penalties), and the Penalties badge on a late or early record (and on My Attendances) shows how many it has.
The Delete button
The tab shows a red Delete button on every row, to the employee too. Deleting needs the base.delete_penaltyaccounts permission, so without it the click leads to a no-permission page instead of deleting the penalty. When a penalty is deleted, the deducted days go back to the leave balance (to the carry-forward days if they were taken from there), and the matching payslip deduction is removed.
