From: marina Date: Fri, 20 Dec 2024 06:23:20 +0000 (+0300) Subject: ERP-256 Сделать отправку документов Пересортица в 1с X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=24e5bff3f183f9b857e530fd79f92d28907520be;p=erp24_rep%2Fyii-erp24%2F.git ERP-256 Сделать отправку документов Пересортица в 1с --- diff --git a/erp24/actions/timetable/StartShiftStepTwoAction.php b/erp24/actions/timetable/StartShiftStepTwoAction.php index d0000501..693d5ad2 100755 --- a/erp24/actions/timetable/StartShiftStepTwoAction.php +++ b/erp24/actions/timetable/StartShiftStepTwoAction.php @@ -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', [ diff --git a/erp24/records/TimetableFactModel.php b/erp24/records/TimetableFactModel.php index ed2f2140..e7304d30 100644 --- a/erp24/records/TimetableFactModel.php +++ b/erp24/records/TimetableFactModel.php @@ -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],