From 93cdb11a19406c79d717811e886ac140a4e725b6 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 10 Jun 2025 13:20:58 +0300 Subject: [PATCH] =?utf8?q?ERP-360=20=D0=A1=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=B0?= =?utf8?q?=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/auto-plannogramma/index.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/erp24/views/auto-plannogramma/index.php b/erp24/views/auto-plannogramma/index.php index 5e992d71..64c26337 100644 --- a/erp24/views/auto-plannogramma/index.php +++ b/erp24/views/auto-plannogramma/index.php @@ -34,8 +34,14 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' => 'year-filter', 'data' => array_combine(range(date('Y') - 5, date('Y') + 5), range(date('Y') - 5, date('Y') + 5)), - 'options' => ['placeholder' => 'Год', 'id' => 'year'], - 'pluginOptions' => ['allowClear' => true], + 'value' => (string)date('Y'), + 'options' => [ + 'placeholder' => 'Год', + 'id' => 'year', + ], + 'pluginOptions' => [ + 'allowClear' => true, + ], ]) ?>
@@ -86,8 +92,14 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' => 'week-filter', 'data' => array_combine(range(1, 53), range(1, 53)), - 'options' => ['placeholder' => 'Неделя', 'id' => 'week'], - 'pluginOptions' => ['allowClear' => true], + 'value' => (date('W') + 8) > 53 ? (date('W') + 8 - 53) : (date('W') + 8), + 'options' => [ + 'placeholder' => 'Неделя', + 'id' => 'week', + ], + 'pluginOptions' => [ + 'allowClear' => true, + ], ]) ?>
-- 2.39.5