From: fomichev Date: Tue, 1 Jul 2025 14:01:46 +0000 (+0300) Subject: Правки пересчета X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=38641f36b084b136394ed7defecaebbc4005f07a;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 38b02a90..2e80485f 100644 --- a/erp24/web/js/category-plan/index.js +++ b/erp24/web/js/category-plan/index.js @@ -66,7 +66,8 @@ function editProcent(zis) { throw new Error('Некорректное число'); } }); - + const previousValue = zis.dataset.prev || zis.defaultValue; + zis.dataset.prev = zis.value; $.ajax({ method: "POST", @@ -99,6 +100,7 @@ function editProcent(zis) { $('#rebuild').prop('disabled', false); }, error: function() { + zis.value = previousValue; alert('Ошибка сохранения! Попробуйте ещё раз.'); } }); @@ -204,7 +206,8 @@ $(document).ready(() => { data: { year: $('#dynamicmodel-year').val(), month: $('#dynamicmodel-month').val(), - store_id: store_id + store_id: store_id, + [param26]: token26 }, success: function (data) { if (data.status == 'running') {