From: marina Date: Fri, 14 Jun 2024 05:42:37 +0000 (+0300) Subject: правка для ерп5 X-Git-Tag: 1.3~60^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f0a981699bc286081f34dded96873a0b7761cf0b;p=erp24_rep%2Fyii-erp24%2F.git правка для ерп5 --- diff --git a/erp24/records/TimetableFactModel.php b/erp24/records/TimetableFactModel.php index 8c480309..06626b97 100644 --- a/erp24/records/TimetableFactModel.php +++ b/erp24/records/TimetableFactModel.php @@ -92,10 +92,10 @@ class TimetableFactModel extends ActiveRecord [['admin_id', 'admin_id_add'], 'exist', 'targetClass' => Admin::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true], [['store_id'], 'exist', 'targetClass' => CityStore::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true], [['time_start', 'time_end'], 'date', 'format' => 'HH:mm:ss'], - [['work_time'], 'number', 'min' => 0, 'max' => 24], +// [['work_time'], 'number', 'min' => 0, 'max' => 24], [['comment'], 'string'], [['comment'], 'default', 'value' => null], - [['slot_type_id', 'date_add', 'date_end', 'time_end', 'salary_shift', 'price_hour'], 'safe'], + [['slot_type_id', 'date_add', 'date_end', 'time_end', 'salary_shift', 'price_hour', 'work_time'], 'safe'], [['date_shift'], 'date', 'format' => 'yyyy-M-d'], [['time_start', 'shift_id'], 'required'], ];