| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public static function defaultColumns() |
||
| 21 | { |
||
| 22 | return array_merge(parent::defaultColumns(), [ |
||
| 23 | 'user_comment' => [ |
||
| 24 | 'value' => function ($model) { |
||
| 25 | return $model->user_comment . ': ' . $model->params['purpose']; |
||
| 26 | } |
||
| 27 | ], |
||
| 28 | 'tech_details' => [ |
||
| 29 | 'format' => 'raw', |
||
| 30 | 'label' => Yii::t('hipanel/finance/change', 'Operation details'), |
||
| 31 | 'value' => function ($model) { |
||
| 32 | $params = $model->params; |
||
| 33 | return OSFormatter::widget([ |
||
| 34 | 'osimages' => ServerHelper::getOsimages($params['tariff_type']), |
||
| 35 | 'imageName' => $params['osimage'], |
||
| 36 | 'infoCircle' => false, |
||
| 37 | ]); |
||
| 38 | } |
||
| 39 | ], |
||
| 40 | ]); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |