]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-5 Доработать фактический план по сотрудникам
authormarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 06:59:01 +0000 (09:59 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 06:59:01 +0000 (09:59 +0300)
erp24/views/timetable-fact/index.php

index f21b6f3c17c140a214d0b891538cfc74dd7496a6..22a929294505d70cf8fcf753bcf19551866d5ea3 100644 (file)
@@ -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;
+                    };
                 },
             ],
             [