Projects modernization: projects list with Active/Mine/Overdue/Due soon/Stalled/Over budget/Ready to close/Completed/Archived/All views, ticket and task progress bars, time logged against budget with unbilled hours, due badges, manager changed in place, manager/client/created filters, bulk set manager, set due date, complete, reopen, archive, restore and delete, CSV/PDF export; project page with header actions, attention banners, tickets/tasks/time/due stat cards, Tickets/Tasks/Activity tabs, scope, details and team with hours; project quick look; New/Edit Project with client contact, start date, budget hours and template that can assign its tickets to the manager; Add tickets by picking or by number; add a project template's tickets to an existing project; template ticket subjects fill in [Client], [Project], [Month], [Quarter] and [Year]; project templates admin rework with ordered ticket templates, multi-add, duplicate, archive and restore; projects on the ticket page, client overview, dashboard, calendar, global search and client actions menu; New Ticket offers internal projects; tickets only join a project of their own client or an internal one; completing a project is checked on the server and completed projects can be reopened; deleting a project keeps its tickets; deleting a client deletes its projects; bulk ticket creation limits project choices to matching clients; project template reordering limited to admins; new manager notifications; new functions/project.php; removed project_link_closed_ticket.php; DB 2.8.6 adds project_start, project_budget_hours, project_contact_id and a ticket_project_id index, and cleans up orphaned projects, ticket project links and template links

This commit is contained in:
johnnyq
2026-10-15 16:35:00 -04:00
parent 64d938db7f
commit bbb2456f0b
44 changed files with 3617 additions and 1550 deletions

View File

@@ -262,6 +262,27 @@ function getExportColumns($export_type) {
'ticket_billable' => ['label' => 'Billable', 'default' => false],
],
// Projects - the handler adds the state, progress and hours (projectStats())
'projects' => [
'project_reference' => ['label' => 'Number'],
'project_name' => ['label' => 'Project', 'weight' => 3],
'client_name' => ['label' => 'Client', 'weight' => 2],
'project_state' => ['label' => 'State'],
'user_name' => ['label' => 'Manager'],
'contact_name' => ['label' => 'Client Contact', 'default' => false],
'project_start' => ['label' => 'Start', 'default' => false],
'project_due' => ['label' => 'Due'],
'project_completed' => ['label' => 'Completed'],
'tickets_done' => ['label' => 'Tickets Done', 'format' => 'number'],
'tickets_total' => ['label' => 'Tickets', 'format' => 'number'],
'tasks_done' => ['label' => 'Tasks Done', 'format' => 'number', 'default' => false],
'tasks_total' => ['label' => 'Tasks', 'format' => 'number', 'default' => false],
'hours_logged' => ['label' => 'Hours Logged', 'format' => 'number'],
'project_budget_hours' => ['label' => 'Budget Hours', 'format' => 'number'],
'hours_unbilled' => ['label' => 'Hours Not Invoiced', 'format' => 'number', 'default' => false],
'project_description' => ['label' => 'Scope', 'weight' => 3, 'default' => false],
],
// invoice_number_display is prefix . number, built by the handler
'invoices' => [
'invoice_number_display' => ['label' => 'Invoice Number'],