From e82e3185a20f6b8181a32808360351cfdf72db5e Mon Sep 17 00:00:00 2001 From: vladfo Date: Fri, 4 Oct 2024 12:44:49 +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=D0=B3?= =?utf8?q?=D1=80=D1=83=D0=BF=D0=BF=D0=B5=201000?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/crud/EmployeePaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/controllers/crud/EmployeePaymentController.php b/erp24/controllers/crud/EmployeePaymentController.php index 3b28344b..18ef4e0a 100755 --- a/erp24/controllers/crud/EmployeePaymentController.php +++ b/erp24/controllers/crud/EmployeePaymentController.php @@ -105,7 +105,7 @@ class EmployeePaymentController extends Controller // Если admin_id не передан, выбираем пользователей без записи в EmployeePayment $admins = Admin::find() ->where(['NOT IN', 'id', EmployeePayment::find()->select('admin_id')]) // Исключаем сотрудников с записями в EmployeePayment - ->andWhere(['!=', 'group_id', '-1']) // Исключаем сотрудников с group_id = -1 + ->andWhere(['NOT IN', 'group_id', [-1, 1000]]) // Исключаем сотрудников с group_id = -1 и group_id = 1000 ->all(); // Преобразуем данные пользователей для использования в Select2 -- 2.39.5