mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 12:50:11 -05:00
feat(workforce): add delete for periods, time-off, leave types, and holidays (fixes #562)
- Backend: WorkforceGovernanceService.delete_period, delete_leave_request, delete_leave_type, delete_holiday with permission and state checks - Web: POST delete routes in workforce blueprint; delete buttons in dashboard for periods (draft/rejected), time-off (draft/submitted/cancelled), leave types list, and company holidays (admin only) - API v1: DELETE endpoints for timesheet-periods, time-off/requests, time-off/leave-types, time-off/holidays (scopes and admin where required) - Desktop: deleteTimesheetPeriod/deleteTimeOffRequest in API client; Delete buttons and handlers in workforce view with confirmation and refresh - Mobile: deleteTimesheetPeriod/deleteTimeOffRequest in API client; Delete in popup menus for periods and time-off requests - Docs: WORKFORCE_DELETE.md, PROJECT_STRUCTURE and API_TOKEN_SCOPES updates
This commit is contained in:
@@ -115,10 +115,11 @@ TimeTracker/
|
||||
Timesheet periods, policies, and time-off tracking for payroll and compliance:
|
||||
|
||||
- **Models**: `TimesheetPeriod`, `TimesheetPolicy`, `TimeOff` (in `app/models/`)
|
||||
- **Routes**: `workforce` blueprint — dashboard, period close, policies, time-off
|
||||
- **Services**: `workforce_governance_service.py` — period close, policy checks, time-off logic
|
||||
- **Templates**: `app/templates/workforce/` (e.g. dashboard)
|
||||
- **Routes**: `workforce` blueprint — dashboard, period close, policies, time-off, **delete** (periods, time-off requests, leave types, holidays)
|
||||
- **Services**: `workforce_governance_service.py` — period close, policy checks, time-off logic, **delete** (period, leave request, leave type, holiday)
|
||||
- **Templates**: `app/templates/workforce/` (e.g. dashboard, with delete buttons where allowed)
|
||||
- **Migration**: `132_add_timesheet_governance_and_time_off.py`
|
||||
- **Docs**: [Workforce delete feature](../features/WORKFORCE_DELETE.md) (Issue #562)
|
||||
|
||||
## ✅ Task Management Feature
|
||||
|
||||
|
||||
Reference in New Issue
Block a user