]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Меняем поле date_end на date_to
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 5 Aug 2025 14:45:37 +0000 (17:45 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 5 Aug 2025 14:45:37 +0000 (17:45 +0300)
erp24/views/products1c-nomenclature-actuality/index.php

index 8774a8f8935434af0a6b80c388b67cde32ce2df0..f0ae525e54ab4cddaee9109db5d26899ff752aa1 100644 (file)
@@ -248,7 +248,7 @@ $months = monthList();
                 'value' => function ($m, $k, $i) use ($months) {
                     $active = $m->getActiveActuality()->one();
                     $from = $active ? (new \DateTime($active->date_from))->format('Y-m') : null;
-                    $to   = $active ? (new \DateTime($active->date_end))->format('Y-m') : null;
+                    $to   = $active ? (new \DateTime($active->date_to))->format('Y-m') : null;
                     return Html::hiddenInput("actuality[$i][guid]", $m->id)
                         . Html::tag('div',
                             Html::dropDownList("actuality[$i][from]", $from, $months, [