Add per-compte dashboard: reste à verser between entrées and versements
New /dashboard/compte page, one compte associé (freelance) at a time via a selector. Focused on entree/versement only (not achat/hébergement/ sous-traitant): reuses the same entrée<->versement reconciliation algorithm as the /lignes badges (a versement can settle several entrées at once, split equally), aggregated per compte to surface outstanding "reste à verser", over-paid entrées, and versements with no linked entrée at all -- plus solde/entrées-vs-versements/top-clients charts for context. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -39,4 +39,20 @@ class DashboardController extends ControllerBase {
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Third page: one compte associé (freelance) at a time -- entrées client
|
||||
* vs versements freelance, and above all which entrées haven't been
|
||||
* (fully) paid out yet. Complements the aggregate /dashboard above,
|
||||
* which mixes every compte and every type together.
|
||||
*/
|
||||
public function compteView() {
|
||||
return [
|
||||
'#theme' => 'figli_compta_dashboard_compte',
|
||||
'#current_route' => 'figli_compta_ledger.dashboard_compte',
|
||||
'#attached' => [
|
||||
'library' => ['figli_compta_ledger/dashboard_compte'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user