From a5eef5e415cddc8a8fd797190704e7c25cca694d Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Wed, 10 Dec 2025 11:01:50 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?utf8?q?=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D1=8B=20=D0=B4?= =?utf8?q?=D0=BB=D1=8F=20=D1=81=D0=BC=D0=B5=D0=BD=20=D0=B0=D0=B4=D0=BC?= =?utf8?q?=D0=B8=D0=BD=D0=B8=D1=82=D1=81=D1=82=D1=80=D0=B0=D1=82=D0=BE?= =?utf8?q?=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Shift.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erp24/records/Shift.php b/erp24/records/Shift.php index 78063bb8..991991a5 100755 --- a/erp24/records/Shift.php +++ b/erp24/records/Shift.php @@ -21,6 +21,8 @@ class Shift extends ActiveRecord { const DAY = 1; const NIGHT = 2; + const ADMINISTRATOR_8_17 = 5; + const ADMINISTRATOR_9_18 = 8; private array $hours = []; @@ -111,6 +113,6 @@ class Shift extends ActiveRecord } public static function getShiftIdsByShiftType ($shiftType) { - return $shiftType == 0 ? [1, 2, 5, 8] : ($shiftType == 1 ? [1, 5, 8] : [2]); + return $shiftType == 0 ? [self::DAY, self::NIGHT, self::ADMINISTRATOR_8_17, self::ADMINISTRATOR_9_18] : ($shiftType == self::DAY ? [self::DAY, self::ADMINISTRATOR_8_17, self::ADMINISTRATOR_9_18] : [self::NIGHT]); } } \ No newline at end of file -- 2.39.5