'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',
'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'] ?? '';
},