From a8d99e349c2a6920ebbe6feae0fd3f6e53a9b652 Mon Sep 17 00:00:00 2001 From: marina Date: Fri, 28 Jun 2024 15:51:27 +0300 Subject: [PATCH] =?utf8?q?ERP-66=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?utf8?q?=D1=82=D1=8C=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= =?utf8?q?=20=D1=81=D0=BC=D0=B5=D0=BD=D1=8B=20=D0=B1=D0=B5=D0=B7=20=D0=BF?= =?utf8?q?=D0=BB=D0=B0=D0=BD=D0=B0=20=D0=B2=20=D0=B2=D0=BE=D1=80=D0=BA?= =?utf8?q?=D0=B1=D0=BE=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api3/modules/v1/models/Admin.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/erp24/api3/modules/v1/models/Admin.php b/erp24/api3/modules/v1/models/Admin.php index ccffcaa7..cf58082f 100644 --- a/erp24/api3/modules/v1/models/Admin.php +++ b/erp24/api3/modules/v1/models/Admin.php @@ -29,7 +29,7 @@ class Admin extends \yii_app\records\Admin 'group' => 'adminGroup', 'export' => 'exportImportTable', 'parent_admin_id', - 'plan_id' +// 'plan_id' ]; /*if($this->parent_admin_id) { @@ -80,12 +80,12 @@ class Admin extends \yii_app\records\Admin return $this->hasOne(self::class, ['id' => 'parent_admin_id']); } - public function getPlanId() - { - return $this->hasOne( Timetable::class, ['admin_id' => 'id']) - ->andWhere(['date' => date('Y-m-d')]) - ->andWhere(['tabel' => 0]); - } +// public function getPlanId() +// { +// return $this->hasOne( Timetable::class, ['admin_id' => 'id']) +// ->andWhere(['date' => date('Y-m-d')]) +// ->andWhere(['tabel' => 0]); +// } // Получить последнюю в списке запись о з.п. -- 2.39.5