diff --git a/src/pages/team/TeamReports.jsx b/src/pages/team/TeamReports.jsx index 3a4ecd0..9e5fb8d 100644 --- a/src/pages/team/TeamReports.jsx +++ b/src/pages/team/TeamReports.jsx @@ -33,7 +33,11 @@ function versionStateFor(task, versionNumber) { const currentVersion = Number(task?.current_version || 0); const version = Number(versionNumber || 0); if (version < currentVersion) return 'completed'; - return task?.status || 'not_started'; + const status = task?.status || 'not_started'; + // invoiced/paid are billing states (legacy leak) — collapse to the work state + // they imply. Billing is shown separately in the Billing column. + if (status === 'invoiced' || status === 'paid') return 'client_approved'; + return status; } function rowSort(a, b) {