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

index ed2f2140d6b1b8ca748cdc910351e9ce2bbc836b..95e8695826bc33736bc824110e33473b8c953eab 100644 (file)
@@ -92,11 +92,6 @@ 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 минут.');
-                }
-            }],
 //            [['work_time'], 'number', 'min' => 0, 'max' => 24],
             [['comment'], 'string'],
             [['comment'], 'default', 'value' => null],