From d776bdca660e3a9ba2443e51c67600d9dd8c2a06 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 25 Jun 2022 08:22:08 +0200 Subject: [PATCH] Fix: affichage coef bonus. Closes #382 --- app/static/js/table_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/table_editor.js b/app/static/js/table_editor.js index cfd60d1e..2b6af16e 100644 --- a/app/static/js/table_editor.js +++ b/app/static/js/table_editor.js @@ -35,7 +35,7 @@ function build_table(data) { ${cellule.data} `; - if (cellule.editable) { + if (cellule.style.includes("champs")) { sumsRessources[cellule.y] = (sumsRessources[cellule.y] ?? 0) + (parseFloat(cellule.data) || 0); sumsUE[cellule.x] = (sumsUE[cellule.x] ?? 0) + (parseFloat(cellule.data) || 0); }