From: marina Date: Thu, 13 Jun 2024 06:59:01 +0000 (+0300) Subject: ERP-5 Доработать фактический план по сотрудникам X-Git-Tag: 1.2^2~4^2~5 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=078db06ced8b848eee477d1b1b6d45dea22d1596;p=erp24_rep%2Fyii-erp24%2F.git ERP-5 Доработать фактический план по сотрудникам --- diff --git a/erp24/views/timetable-fact/index.php b/erp24/views/timetable-fact/index.php index f21b6f3c..22a92929 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -50,7 +50,7 @@ $this->params['breadcrumbs'][] = $this->title; 'attribute' => 'work_time', ], [ - 'label' => 'Дата смены', + 'label' => 'Дата смены', 'attribute' => 'date_shift', 'format' => ['date', 'php:d.m.Y'], ], @@ -76,14 +76,18 @@ $this->params['breadcrumbs'][] = $this->title; 'label' => 'Отметка о начале', 'format' => 'raw', 'value' => function ($model) { - return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + if (!empty($model->checkin_start_id)) { + return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + }; }, ], [ 'label' => 'Отметка о конце', 'format' => 'raw', 'value' => function ($model) { - return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + if (!empty($model->checkin_end_id)) { + return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + }; }, ], [