Add solde totals footer row + fix JSON:API pagination duplicate bug
- tfoot row: sum per compte (créditeur/débiteur colored) for the currently filtered rows, plus HT/TTC/écart totals - Fixed a real bug: fetchAllLignes() paginated without a unique sort key (field_date_ligne alone, many ties), which let Drupal's JSON:API return the same row on two pages -- silently inflating totals (Bachir showed -3115,38€ instead of -3013,56€). Now sorts by field_date_ligne,drupal_internal__nid (home) / drupal_internal__nid (dashboard), plus a defensive client-side de-dup by node id either way. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,26 @@ html.gin--dark-mode #figli-home-app {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#figli-home-app tfoot {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
#figli-home-app tr.figli-totals-row td {
|
||||
background: var(--figli-bg-alt);
|
||||
color: var(--figli-text);
|
||||
font-weight: 700;
|
||||
border-top: 2px solid var(--figli-border);
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#figli-home-app td.figli-solde-crediteur {
|
||||
color: var(--figli-positive);
|
||||
}
|
||||
#figli-home-app td.figli-solde-debiteur {
|
||||
color: var(--figli-error);
|
||||
}
|
||||
|
||||
/* Error rows: a thin red outline around the row, not a background fill --
|
||||
easier to read, doesn't fight with dark mode. */
|
||||
#figli-home-app tr.figli-error-row td {
|
||||
|
||||
Reference in New Issue
Block a user