From: Alexander Smirnov Date: Fri, 5 Jul 2024 13:24:29 +0000 (+0300) Subject: Проверка на наличие чекина перевд выводом X-Git-Tag: 1.3~4^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=3daa939f2234fd75f5cde24b77ab6a6f562afc0e;p=erp24_rep%2Fyii-erp24%2F.git Проверка на наличие чекина перевд выводом --- diff --git a/erp24/views/timetable-fact/index.php b/erp24/views/timetable-fact/index.php index 02b8a682..118767a3 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -79,7 +79,7 @@ $this->params['breadcrumbs'][] = $this->title; 'label' => 'Отметка о начале', 'format' => 'raw', 'value' => function ($model) { - if (!empty($model->checkin_start_id)) { + if ($model->checkinStart) { return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, @@ -88,7 +88,7 @@ $this->params['breadcrumbs'][] = $this->title; 'label' => 'Отметка о конце', 'format' => 'raw', 'value' => function ($model) { - if (!empty($model->checkin_end_id)) { + if ($model->checkinEnd) { return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; },