diff --git a/core/templates/core/payroll_dashboard.html b/core/templates/core/payroll_dashboard.html index 7873043..a616062 100644 --- a/core/templates/core/payroll_dashboard.html +++ b/core/templates/core/payroll_dashboard.html @@ -114,10 +114,43 @@
-
Monthly Payroll Totals
+ {# === CHART TOGGLE: Overall vs By Worker === #} + {# Two small buttons to switch between the total line chart #} + {# and a per-worker stacked bar chart breakdown. #} +
+
Monthly Payroll
+
+ + +
+
- + {# --- Overall view (default): the existing line chart --- #} +
+ +
+ + {# --- By Worker view (hidden): worker dropdown + stacked bar --- #} +
@@ -641,6 +674,7 @@ {{ chart_labels_json|json_script:"chartLabelsJson" }} {{ chart_totals_json|json_script:"chartTotalsJson" }} {{ project_chart_json|json_script:"projectChartJson" }} +{{ worker_chart_json|json_script:"workerChartJson" }}