]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
скрипт для объединения задублированных смен
authormarina <m.zozirova@gmail.com>
Fri, 5 Jul 2024 06:37:03 +0000 (09:37 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 5 Jul 2024 06:37:03 +0000 (09:37 +0300)
erp24/controllers/TimetableFactController.php

index 89dbe002e18909e2a787a48b08c9f819538c52e5..7ffcce1161246f99e55d6ad7a144821a75ee8927 100644 (file)
@@ -255,6 +255,7 @@ class TimetableFactController extends Controller
                     $start = $facts[0];
                     $end = end($facts);
 
+
                     if ($start->id > $end->id) {
                         $temp = $start;
                         $start = $end;
@@ -275,7 +276,6 @@ class TimetableFactController extends Controller
             'query' => TimetableFactModel::find()
                 ->andWhere(['>=', 'date_shift', '2024-07-01'])
                 ->andWhere(['<=', 'date_shift', '2024-07-05'])
-                ->andWhere(['autoclosed' => 1])
                 ->orderBy('date_shift, admin_id,id,  store_id'),
             'pagination' => [
                 'pageSize' => false