Commit Graph

7 Commits

Author SHA1 Message Date
33f776c6b2 feat(auth): enforce strict branch scoping for overtime requests, attendance regularizations, and 13th month pay
- Restrict overtime applications query, submission, approval, and attendance details to assigned branch
- Restrict attendance regularization listing, statistics, and dropdowns to assigned branch
- Restrict 13th month pay batch generation, historical runs, entry updates, approvals, and CSV exports to assigned branch
- Add feature tests in BranchScopedAccessTest for overtime and 13th month isolation
2026-09-10 11:22:15 +08:00
7f467600e9 feat(auth): enforce strict branch scoping for branch-assigned HR and staff accounts
- Introduce authBranchId() helper to resolve assigned branch while allowing company admin/superadmin cross-branch oversight
- Restrict branch, department, and employee listings and mutations to assigned branch for branch-scoped accounts
- Scope attendance records, biometric logs, leave applications/balances, payslips, shifts, and announcements by assigned branch
- Add comprehensive automated feature tests in BranchScopedAccessTest to prevent branch cross-visibility regression
2026-09-10 11:14:24 +08:00
20abd5d0bb fix: map overtime hours and amount in payroll entries and backfill historical data 2026-06-26 14:59:37 +08:00
0feba46378 Fix leave balance calculation and ensure payslip number uniqueness 2026-06-26 14:05:23 +08:00
494b43fabf feat: add payroll export, totals row, audit command, and payroll scenario tests 2026-06-15 10:57:01 +08:00
c4daa8326a build 2 2026-04-20 00:20:10 +08:00
273c8e8153 initial commit 2026-04-13 08:16:56 +08:00