]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Выправка
authormarina <m.zozirova@gmail.com>
Thu, 1 Aug 2024 06:45:59 +0000 (09:45 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 1 Aug 2024 06:45:59 +0000 (09:45 +0300)
erp24/actions/timetable/StartShiftStepTwoAction.php

index b75180bf3990153d36a3a744864340ba316077f5..aba8215a0ad8cf18b78741d10a26a279759f7ce8 100755 (executable)
@@ -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();