From 99fbaeb5fabd434ad0abeccbfcf64608289a136e Mon Sep 17 00:00:00 2001 From: vladfo Date: Fri, 4 Oct 2024 12:13:17 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?utf8?q?=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=20=D0=BF=D0=BE=20=D1=83?= =?utf8?q?=D0=B2=D0=BE=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=BC=20=D1=81=D0=BE?= =?utf8?q?=D1=82=D1=80=D1=83=D0=B4=D0=BD=D0=B8=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/crud/EmployeePaymentController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erp24/controllers/crud/EmployeePaymentController.php b/erp24/controllers/crud/EmployeePaymentController.php index 7d64a6b8..3b28344b 100755 --- a/erp24/controllers/crud/EmployeePaymentController.php +++ b/erp24/controllers/crud/EmployeePaymentController.php @@ -104,7 +104,8 @@ class EmployeePaymentController extends Controller } else { // Если admin_id не передан, выбираем пользователей без записи в EmployeePayment $admins = Admin::find() - ->where(['NOT IN', 'id', EmployeePayment::find()->select('admin_id')]) + ->where(['NOT IN', 'id', EmployeePayment::find()->select('admin_id')]) // Исключаем сотрудников с записями в EmployeePayment + ->andWhere(['!=', 'group_id', '-1']) // Исключаем сотрудников с group_id = -1 ->all(); // Преобразуем данные пользователей для использования в Select2 -- 2.39.5