From: fomichev Date: Wed, 25 Jun 2025 08:11:09 +0000 (+0300) Subject: Убрал округление X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=aea1293391afccc992f803c8ee587e7cb8bb1e30;p=erp24_rep%2Fyii-erp24%2F.git Убрал округление --- 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;