BACKOFFICE PAYROLL RULE PATCH - 2026-05-05

Scope
- This is a narrow backoffice/reporting patch only.
- It does not change database tables.
- It does not run SQL.
- It does not touch attendance login, clock-in, clock-out, or working-lunch API files.

Files replaced
- backoffice/config.php
- backoffice/payroll-helpers.php
- backoffice/payroll-settings.php
- backoffice/payroll-lunch-rules.php

Rules applied
1. Standard day is 07:30 to 16:30.
2. Base paid time = clock span minus fixed lunch deduction.
3. Completed Working Lunch minutes are added back to paid time.
4. Working Lunch started but not ended adds 0 minutes.
5. Normal hours are capped at 8 paid hours per normal day.
6. Weekday/Saturday paid time above 8 hours becomes OT 1.5.
7. OT 2.0 applies only on Sundays and public holidays.
8. Forced/auto close, including 23:59 close, pays normal day only: 9 hours less 1 hour lunch = 8 normal hours. It creates no OT 1.5 and no OT 2.0.

Install
1. Upload this ZIP to /home/uent/public_html/
2. Extract it there.
3. Delete the ZIP.
4. Open Backoffice reports and compare one known employee/day before and after.

Rollback
- Restore the four files listed above from your previous backup if needed.
