From: marina Date: Fri, 20 Dec 2024 06:13:01 +0000 (+0300) Subject: ERP-256 Сделать отправку документов Пересортица в 1с X-Git-Tag: 1.7~121^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=7ce5c1ea21a9c572606fc66325daa573caa83f94;p=erp24_rep%2Fyii-erp24%2F.git ERP-256 Сделать отправку документов Пересортица в 1с --- diff --git a/erp24/records/TimetableFactModel.php b/erp24/records/TimetableFactModel.php index ed2f2140..95e86958 100644 --- a/erp24/records/TimetableFactModel.php +++ b/erp24/records/TimetableFactModel.php @@ -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],