From: Vladimir Fomichev Date: Fri, 25 Jul 2025 09:07:39 +0000 (+0300) Subject: Изменил условие сохранения X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cd875f74c759caa02432de7f46c6a3b62b72fe03;p=erp24_rep%2Fyii-erp24%2F.git Изменил условие сохранения --- diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index 7a4adf1a..27327792 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -396,9 +396,10 @@ $('.btn-save').on('click', function () { const $input = $(this); const id = $input.data('id'); const value = $input.val(); - const $arrow = $input.closest('div').find('svg path'); + const originalValue = $input.data('original-value'); - if ($arrow.attr('fill') !== 'red') { + + if (parseFloat(value) === parseFloat(originalValue)) { return; }