From: marina Date: Thu, 1 Aug 2024 06:45:59 +0000 (+0300) Subject: Выправка X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e1e8b21178b4f704ad43796c7620e5047b3df06b;p=erp24_rep%2Fyii-erp24%2F.git Выправка --- 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();