diff --git a/src/views/Reports.vue b/src/views/Reports.vue index 5a1d7d8..3d2a532 100644 --- a/src/views/Reports.vue +++ b/src/views/Reports.vue @@ -32,73 +32,171 @@ - -
Total Hours
-{{ formatHours(reportData.totalSeconds) }}
-Earnings
-{{ formatCurrency(reportData.totalEarnings || 0) }}
-Projects
-{{ reportData.byProject?.length || 0 }}
-Generate a report to see your data
+ + + +Total Hours
+{{ formatHours(reportData.totalSeconds) }}
+Earnings
+{{ formatCurrency(reportData.totalEarnings || 0) }}
+Projects
+{{ reportData.byProject?.length || 0 }}
Generate a report to see your data
++ No data for selected date range +
+Total Revenue
+{{ formatCurrency(profitTotalRevenue) }}
+Total Hours
+{{ profitTotalHours.toFixed(1) }}h
+Avg Hourly Rate
+{{ formatCurrency(profitAvgRate) }}
+Generate a report to see profitability data
- No data for selected date range -
-| Project | +Client | +Hours | +Rate | +Revenue | +Budget % | +
|---|---|---|---|---|---|
| {{ row.project_name }} | +{{ row.client_name || '—' }} | +{{ row.total_hours.toFixed(1) }}h | +{{ formatCurrency(row.hourly_rate) }} | +{{ formatCurrency(row.revenue) }} | ++ {{ row.budget_used_pct != null ? row.budget_used_pct.toFixed(0) + '%' : '—' }} + | +
+ No data for selected date range +
+- {{ timerParts.hours }} - : - {{ timerParts.minutes }} - : - {{ timerParts.seconds }} -
++ {{ timerParts.hours }} + : + {{ timerParts.minutes }} + : + {{ timerParts.seconds }} +
+ +