From c242b0ea544c327ba177e0cadd16f9e2a5dcaed5 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 8 Aug 2024 08:25:16 +0300 Subject: [PATCH] =?utf8?q?ERP-85=20=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7?= =?utf8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BE=D0=B1=D0=BC=D0=B5=D0=BD?= =?utf8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=201=D0=A1=20?= =?utf8?q?=D0=91=D1=83=D1=85=D0=B3=D0=B0=D0=BB=D1=82=D0=B5=D1=80=D0=B8?= =?utf8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/timetable/StartShiftStepTwoAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/actions/timetable/StartShiftStepTwoAction.php b/erp24/actions/timetable/StartShiftStepTwoAction.php index eac6ffa7..f6b9c92b 100755 --- a/erp24/actions/timetable/StartShiftStepTwoAction.php +++ b/erp24/actions/timetable/StartShiftStepTwoAction.php @@ -143,7 +143,7 @@ class StartShiftStepTwoAction extends Action $validate = $model->validate(); $maxShiftDuration = max(ArrayHelper::getColumn(Shift::all(), 'duration')); var_dump(AdminCheckin::find() - ->andWhere(['admin_id' => $this->admin_id]) + ->andWhere(['admin_id' => $model->admin_id]) ->andWhere(['>', 'time', date('Y-m-d H:i:s', strtotime("-$maxShiftDuration hour"))]) ->orderBy(['time' => SORT_DESC]) ->limit(1)->createCommand()->getRawSql()); -- 2.39.5