Renomme HT/TTC, réduit leur largeur, ajoute une colonne TVA au grand livre

HT/TTC passent de "Montant HT"/"Montant TTC" à "HT"/"TTC" (5% de large
au lieu de 6,2%), avec une nouvelle colonne TVA entre les deux (3,5%,
affichée en %, arrondie à 2 décimales -- les lignes migrées portent
parfois un taux rétro-calculé à 4 décimales, voir
figli_compta_ledger_update_8005()). field_tva était déjà exposé sans
changement de requête JSON:API (pas de sparse fieldset ici).

Piège de spécificité CSS : .amount:not(.compte-col) (déjà en place
pour Écart) compte comme 2 classes à cause de :not(), donc un simple
.figli-ht-col à une classe perdait systématiquement contre elle --
recombiné en .amount.figli-ht-col pour égaler/dépasser sa spécificité.
This commit is contained in:
2026-09-07 12:18:58 +02:00
parent f0927bac88
commit e117089be5
3 changed files with 40 additions and 9 deletions
@@ -444,6 +444,22 @@ html.gin--dark-mode #figli-home-app {
width: 6.2%;
white-space: nowrap;
}
/* HT/TTC narrower than the general .amount rule above (still used by
Écart) -- shorter header text (HT/TTC vs. the old Montant HT/Montant
TTC) and TVA splitting the row between them means neither needs as
much room. TVA itself narrower still: "12,64 %" is the longest
realistic value (see figli_compta_ledger_update_8005()'s docblock on
backfilled non-round rates), well short of an 8-figure amount.
`.amount` doubled up in the selector (not just .figli-ht-col alone):
:not(.compte-col) in the rule above counts toward specificity same as
a real class, so a single-class selector here would lose to it. */
#figli-home-app .amount.figli-ht-col,
#figli-home-app .amount.figli-ttc-col {
width: 5%;
}
#figli-home-app .amount.figli-tva-col {
width: 3.5%;
}
#figli-home-app .amount.compte-col {
width: 4.3%;
white-space: nowrap;