A day can meet several conditions at once — for example both a public holiday and a personal leave. The system decides in this order (top to bottom, first wins):
| Order | Status | Meaning |
|---|---|---|
| 1 | Leave | An approved leave exists on this day. This status wins over everything. |
| 2 | Public holiday | The day is in the public holidays list (Eid, national days). |
| 3 | Weekend | The day is not a working day in the employee’s shift (usually Friday). |
| 4 | Present / late | The employee showed up. If they arrived after the grace period, "late" is recorded. |
| 5 | Half day | Hours worked were below a full day but above the half-day threshold. |
| 6 | Absent | No punch exists and it was a working day. |
Why does leave win over a public holiday? Because approved leave is an administrative decision that was recorded and deducted from the employee’s balance. If the system recorded that day as a public holiday, it would not be clear why the balance went down.