From e1e8b21178b4f704ad43796c7620e5047b3df06b Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 1 Aug 2024 09:45:59 +0300 Subject: [PATCH] =?utf8?q?=D0=92=D1=8B=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/timetable/StartShiftStepTwoAction.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/erp24/actions/timetable/StartShiftStepTwoAction.php b/erp24/actions/timetable/StartShiftStepTwoAction.php index b75180bf..aba8215a 100755 --- a/erp24/actions/timetable/StartShiftStepTwoAction.php +++ b/erp24/actions/timetable/StartShiftStepTwoAction.php @@ -44,11 +44,7 @@ class StartShiftStepTwoAction extends Action $plan = Timetable::find() ->andWhere(['admin_id' => $userModel->id]) - ->andWhere([ - 'OR', - ['date' => date('Y-m-d')], - ['date' => date('Y-m-d', strtotime('-1 day'))], - ]) + ->andWhere(['date' => date('Y-m-d')]) ->andWhere(['tabel' => 0]) ->orderBy('id desc') ->one(); -- 2.39.5