From b959c7e525d9dbdbb22d97f0c6cd55f3ab586306 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 6 May 2024 18:01:40 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80?= =?utf8?q?=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B5=D0=B3=D0=BE?= =?utf8?q?=20=D0=B4=D0=BD=D1=8F=20=D0=BD=D0=B5=D0=BE=D0=B1=D1=85=D0=BE?= =?utf8?q?=D0=B4=D0=B8=D0=BC=20=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=B0=D1=85?= =?utf8?q?=D0=BE=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B5?= =?utf8?q?=D0=B4=D1=8B=D0=B4=D1=83=D1=89=D0=B5=D0=B3=D0=BE=20=D1=87=D0=B5?= =?utf8?q?=D0=BA=D0=B8=D0=BD=D0=B0,=20=D0=BE=D1=81=D1=82=D0=B0=D0=BB=D1=8C?= =?utf8?q?=D0=BD=D1=8B=D0=B5=20=D0=BD=D0=B5=20=D1=80=D0=B5=D0=BB=D0=B5?= =?utf8?q?=D0=B2=D0=B0=D0=BD=D1=82=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/timetable/StartShiftStepOneAction.php | 1 + 1 file changed, 1 insertion(+) diff --git a/erp24/actions/timetable/StartShiftStepOneAction.php b/erp24/actions/timetable/StartShiftStepOneAction.php index a8a25f0..8a743b5 100755 --- a/erp24/actions/timetable/StartShiftStepOneAction.php +++ b/erp24/actions/timetable/StartShiftStepOneAction.php @@ -30,6 +30,7 @@ class StartShiftStepOneAction extends Action /** @var AdminCheckin[] $dayCheckins */ $dayCheckins = AdminCheckin::find() ->andWhere(['admin_id' => $userModel->id]) + ->andWhere(['>', 'time', date('Y-m-d H:i:s', strtotime('-1 day'))]) ->orderBy(['time' => SORT_ASC]) ->all(); $lastCheckin = end($dayCheckins); -- 2.39.5