ec2af0ea7eb4c697817300aaf627bda212f0c889
Extends DashboardStatsController::stats()'s répartition-level SQL query to also group by type (not just année/compte), producing a new total_par_type_par_compte breakdown alongside the existing global one. Unlike the reconciliation tables on this page (deliberately entrée/ versement only), this chart covers every type touching the selected compte's répartition, matching what the general /dashboard already shows for the whole ledger. Fixed a latent bug the query change would otherwise have introduced: solde_par_compte_par_annee[année][compte] used to be a 1:1 assignment because each (année, compte) pair was unique in the old query -- adding type to the GROUP BY means several rows can now share that same pair, so it has to accumulate instead of overwrite (verified the accumulated totals exactly match a query without the type split, so this preserves existing behavior for the fields already in use). HBarChart in dashboard-compte.js gained the same colorFor prop dashboard.js's version already has (existing Top clients usage keeps its default green, unaffected). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
No description provided
1.2 MiB
Languages
php
44.6%
JavaScript
32.8%
CSS
13.4%
Twig
9.2%