ecarts de 0.01€ visible dans le tableau

This commit is contained in:
2026-09-09 21:42:17 +02:00
parent 5eca3804bf
commit 6e1c421e5b
3 changed files with 25 additions and 6 deletions
@@ -445,7 +445,12 @@
parCompte,
somme,
ecart,
hasError: Math.abs(ecart) > 0.01,
// Visible écart = non-zero to the centime (a 0.01 mismatch is
// savable -- the blocking threshold stays at 0.01 server-side --
// but must still be shown; mirrors LedgerRowsController's
// hasError). 0.005 guards against float representation of
// stored centimes.
hasError: Math.abs(ecart) > 0.005,
linkable: LINKABLE_TYPES.includes(attrs.field_type_ligne),
entreeLieeIds: entreeLieeNodes.map((n) => n.id),
entreeLieeLabels: entreeLieeNodes.map((n) => n.attributes.title || n.id),