return $data['product_self_cost'] ?? '';
},
],
+ [
+ 'name' => 'product_replacement_count',
+ 'type' => BaseColumn::TYPE_TEXT_INPUT,
+ 'options' => ['type' => 'number', 'step' => 1, 'readonly' => true,],
+ 'title' => 'Количество',
+ 'value' => function ($data) {
+ return $data['product_count'] ?? '';
+ }
+ ],
[
'name' => 'product_replacement_id',
'title' => 'Замещающий товар',
'label' => 'Цена товара розничная',
'format' => 'raw',
],
+ [
+ 'attribute' => 'product_count',
+ 'label' => 'Количество товара',
+ 'format' => 'raw',
+ 'pageSummary' => true,
+ ],
[
'attribute' => 'product_replacement_id',
'label' => 'Товар замена',