{# Dashboard shell: Drupal renders the page (nav, auth, permissions). dashboard.js (Vue 3) fetches JSON:API and renders a spreadsheet-like table of every ligne comptable, with filters and month/year grouping, client-side. "Ajouter une ligne" opens the real Drupal node form in a modal (core/drupal.dialog.ajax) -- no form logic duplicated in JS. #} {% verbatim %}
+ Ajouter une ligne {% endverbatim %} {% if can_view_history %} Historique {% endif %} {% verbatim %} {{ filteredRows.length }} / {{ rows.length }} lignes chargées{{ errorCount ? ' — ' + errorCount + ' avec écart' : '' }}

Erreur : {{ typeUpdateError }}

Chargement des données…

Erreur de chargement : {{ error }}

Date Client Type Libellé / Détail Montant HT Montant TTC {{ c }} Écart
Chargement des mois précédents…
Chargement des mois suivants…
{{ footerTotals ? formatEur(footerTotals.montant_ht) : '' }} {{ footerTotals ? formatEur(footerTotals.montant_ttc) : '' }} {{ footerTotals && footerTotals.par_compte[c] !== undefined ? formatEur(footerTotals.par_compte[c]) : '' }} {{ footerTotals ? formatEur(footerTotals.ecart) : '' }}
{% endverbatim %}