From 2b6ad48ee940438f1c5beb4962588cd9c2c81cc1 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 31 Mar 2021 13:27:59 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20#1838=20Souci=20d=C3=A9cimales=20ventilat?= =?UTF-8?q?ion=20CA=20si=20automatique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/js/anc_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/js/anc_script.js b/html/js/anc_script.js index ce7cc580a..ea88a6139 100644 --- a/html/js/anc_script.js +++ b/html/js/anc_script.js @@ -59,11 +59,11 @@ function add_row(p_table, p_seq) { var cell = row.insertCell(i); var txt = rowToCopy.cells[i].innerHTML; -// txt=txt.replace(/row_1/g,"row_"+new_value); cell.innerHTML = txt; } var col = document.getElementsByName("val[" + p_seq + "][]"); - col[col.length - 1].value = max - amount; + let tmp_amount=max - amount; + col[col.length - 1].value = Math.round(tmp_amount*100)/100; anc_refresh_remain(p_table, p_seq); } /**