From aea1293391afccc992f803c8ee587e7cb8bb1e30 Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 25 Jun 2025 11:11:09 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BE=D0=BA?= =?utf8?q?=D1=80=D1=83=D0=B3=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/web/js/category-plan/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erp24/web/js/category-plan/index.js b/erp24/web/js/category-plan/index.js index 9962ca9f..e930000a 100644 --- a/erp24/web/js/category-plan/index.js +++ b/erp24/web/js/category-plan/index.js @@ -64,8 +64,12 @@ function editField(zis) { // пересчитываем % p1Input.value = p1Cell.dataset.offline > 0 - ? (100 * offlineVal / +p1Cell.dataset.offline) + ? (100 * offlineVal / +p1Cell.dataset.offline).toFixed(2) : 0; + console.log(p1Input.value); + + console.log(Math.round(p1Input.value)); + p2Input.value = p2Cell.dataset.online > 0 ? (100 * internetVal / +p2Cell.dataset.online) : 0; -- 2.39.5