From: Alexander Smirnov Date: Thu, 5 Dec 2024 13:01:08 +0000 (+0300) Subject: [ERP-258] скрыть кнопку принятия до выбора в группе другие, поправка пересчёта X-Git-Tag: 1.7~189^2~15 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d4138c5921865dbd293cf00e4e8f3bc6364555d1;p=erp24_rep%2Fyii-erp24%2F.git [ERP-258] скрыть кнопку принятия до выбора в группе другие, поправка пересчёта --- diff --git a/erp24/views/shift-transfer/update.php b/erp24/views/shift-transfer/update.php index 3e85ea99..a58fb91b 100644 --- a/erp24/views/shift-transfer/update.php +++ b/erp24/views/shift-transfer/update.php @@ -73,14 +73,14 @@ $this->registerCss(' Другие
- field($shiftTransfer, 'groups1')->checkboxList($hints1, ['checked' => 1]) ?> + field($shiftTransfer, 'groups1')->checkboxList($hints1, ['checked' => 1, 'onclick' => '$("#acceptDiv").removeClass("d-none");']) ?>
-
+
'Номенклатура 1%'] ?> field($shiftTransfer, 'groups2')->checkboxList($hints2, ['checked' => 1]) ?>
-
+
'btn btn-success', 'name' => 'action', 'value' => 'applyGroups']) ?>
diff --git a/erp24/web/js/shift-transfer/update.js b/erp24/web/js/shift-transfer/update.js index ee787388..5614ad28 100644 --- a/erp24/web/js/shift-transfer/update.js +++ b/erp24/web/js/shift-transfer/update.js @@ -110,7 +110,7 @@ $(document).ready(() => { $('.multiple-input').on('afterInit', function(){ const rows = $('.multiple-input-list__item'); for (let currentIndex = 0; currentIndex < rows.length; currentIndex++) { - setMultipleInputHandlers(currentIndex + 1, rows[currentIndex]); + setMultipleInputHandlers(currentIndex, rows[currentIndex]); } }).on('afterAddRow', function(e, row, currentIndex) { setMultipleInputHandlers(currentIndex, row);