ecarts de 0.01€ visible dans le tableau
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user