]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-256 Сделать отправку документов Пересортица в 1с
authormarina <m.zozirova@gmail.com>
Fri, 20 Dec 2024 06:23:20 +0000 (09:23 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 20 Dec 2024 06:23:20 +0000 (09:23 +0300)
erp24/actions/timetable/StartShiftStepTwoAction.php
erp24/records/TimetableFactModel.php

index d0000501a608372aebbc70a7dd18fcd9ee99957e..693d5ad2e6212b4c3ca52bda97beb2780c0e9f67 100755 (executable)
@@ -165,9 +165,10 @@ class StartShiftStepTwoAction extends Action
                     'device' => $device,
                     'planSlots' => $planSlots,
                 ]);
-            } else {
-                var_dump($model->errors);die();
             }
+// else {
+//                var_dump($model->errors);die();
+//            }
         }
 
         return $this->controller->render('/timetable/start_shift_step_two.php', [
index ed2f2140d6b1b8ca748cdc910351e9ce2bbc836b..e7304d3095cc08adb998310fc58abc499b0966a4 100644 (file)
@@ -92,11 +92,11 @@ class TimetableFactModel extends ActiveRecord
             [['checkin_start_id', 'checkin_end_id'], 'exist', 'targetClass' => AdminCheckin::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
             [['admin_id', 'admin_id_add'], 'exist', 'targetClass' => Admin::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
             [['store_id'], 'exist', 'targetClass' => CityStore::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
-            ['time_end', function($attribute) {
-                if (strtotime($this->$attribute) - strtotime($this->time_start) < 120) {
-                    $this->addError($attribute, 'Интервал между сменами должен быть не менее 2 минут.');
-                }
-            }],
+//            ['time_end', function($attribute) {
+//                if (strtotime($this->$attribute) - strtotime($this->time_start) < 120) {
+//                    $this->addError($attribute, 'Интервал между сменами должен быть не менее 2 минут.');
+//                }
+//            }],
 //            [['work_time'], 'number', 'min' => 0, 'max' => 24],
             [['comment'], 'string'],
             [['comment'], 'default', 'value' => null],