From: marina Date: Mon, 10 Jun 2024 13:23:30 +0000 (+0300) Subject: ERP-22 В обращениях клиентов не подгружаются фото X-Git-Tag: 1.2^2~4^2~12 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=96872c4577b71417bfc37fa8aa3ac2681f62d965;p=erp24_rep%2Fyii-erp24%2F.git ERP-22 В обращениях клиентов не подгружаются фото --- diff --git a/erp24/records/TimetableFactModel.php b/erp24/records/TimetableFactModel.php index 47a19aba..b61b948f 100644 --- a/erp24/records/TimetableFactModel.php +++ b/erp24/records/TimetableFactModel.php @@ -112,7 +112,7 @@ class TimetableFactModel extends ActiveRecord $model->store_id = $adminCheckin->store_id; $model->date_shift = $adminCheckin->date; $model->shift_id = $shift_id; - $model->salary_shift = EmployeePayment::findOne(['admin_id' => $adminCheckin->admin_id])->daily_payment; + $model->salary_shift = EmployeePayment::findOne(['admin_id' => $adminCheckin->admin_id])->daily_payment ?? null; $model->price_hour = $model->salary_shift / $model->d_id == AdminGroup::GROUP_ADMINISTRATORS ? 8 : 12; }