]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-441] Изменение шага заполнения
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 16 Jul 2025 15:16:47 +0000 (18:16 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 16 Jul 2025 15:16:47 +0000 (18:16 +0300)
erp24/views/shift-transfer/index.php
erp24/views/shift-transfer/update.php

index 897bc5421140151ade3be7a68dd398c9e7e75fbb..4e33075e3fce1a0442c35df9490ef2b998a34c6d 100644 (file)
@@ -62,7 +62,14 @@ use app\controllers\ShiftTransferController;
                 'value' => function ($model) {
                     $productGroups = explode(',', $model['product_groups'] ?? '');
                     $hints1 = \yii_app\records\ProductsClass::getHints();
-                    return implode('<br>', array_map(function($el) use ($hints1) { return $hints1[$el]; }, $productGroups));
+                    return implode(
+                            '<br>',
+                            array_map(function($el) use ($hints1) {
+                                return $hints1[$el] ?? '';
+                                },
+                                $productGroups
+                            )
+                    );
                 }
             ],
             'goods_transfer_count',
index f26fcf49be5d38586d70cc137f301f7cd45096f9..f49377ef215c07e03f3d08361f80f6100802aeef 100644 (file)
@@ -161,7 +161,7 @@ $this->registerJs('var getMeOut = false;',  \yii\web\View::POS_HEAD, 'getMeOut')
                     'name'  => 'remains_count',
                     'title' => 'Фактические остатки кол-во, шт',
                     'type'  => BaseColumn::TYPE_TEXT_INPUT,
-                    'options' => ['type' => 'number', 'step' => 1, 'min' => 0],
+                    'options' => ['min' => 0],
                     'value' => function($data) {
                         return $data['remains_count'] ?? '';
                     },