]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-301] комментарий до будущего рефактора
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 31 Jan 2025 14:10:08 +0000 (17:10 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 31 Jan 2025 14:10:08 +0000 (17:10 +0300)
erp24/actions/payroll/ListAdminsAction.php
erp24/forms/payroll/YearMonthSearchForm.php

index 78142921ca306e74340215e1706bf30cc85e0da0..2e9922da67d404fb6afc2ea8dcd762055bf7b0af 100755 (executable)
@@ -111,8 +111,8 @@ class ListAdminsAction extends Action
 
         $adminPayrollQuery = AdminPayroll::find()
             ->andWhere(['admin_payroll.date' => $yearSelect . '-' . $monthWithZeroSelect])
-            ->andFilterWhere(['admin.group_id' => $yearMonthSearchForm->admin_group_id > 0 ? $yearMonthSearchForm->admin_group_id : null])
-            ->andFilterWhere(['like', 'admin.name_full', '%' . $yearMonthSearchForm->admin_name . '%', false])
+//            ->andFilterWhere(['admin.group_id' => $yearMonthSearchForm->admin_group_id > 0 ? $yearMonthSearchForm->admin_group_id : null])
+//            ->andFilterWhere(['like', 'admin.name_full', '%' . $yearMonthSearchForm->admin_name . '%', false])
             ->with('admin')
             ->with('store')
             ->leftJoin('admin','admin_payroll.admin_id = admin.id')
index 22921057e584852f7555eb123e197d314033e9e5..c2bdbb463dfda69164fa06c6aacd2e89c54bf5d9 100755 (executable)
@@ -12,15 +12,15 @@ class YearMonthSearchForm extends Model
     public string $dateFrom;
     public string $dateTo;
     public string $store_id;
-    public string $admin_name;
-    public int $admin_group_id;
+//    public string $admin_name;
+//    public int $admin_group_id;
 
     public function rules(): array
     {
         return [
-            [['year', 'month', 'dateFrom', 'dateTo', 'store_id', 'admin_name'], 'string'],
+            [['year', 'month', 'dateFrom', 'dateTo', 'store_id'/*, 'admin_name'*/], 'string'],
             [['year', 'month'], 'required'],
-            [['admin_group_id'], 'integer'],
+//            [['admin_group_id'], 'integer'],
         ];
     }
     public function __construct()
@@ -34,9 +34,9 @@ class YearMonthSearchForm extends Model
 
         $this->month = date("m", strtotime(date("Y-m-d",time()) . $modifier));
 
-        $this->admin_name = '';
+//        $this->admin_name = '';
 
-        $this->admin_group_id = 0;
+//        $this->admin_group_id = 0;
     }
 
 
@@ -47,8 +47,8 @@ class YearMonthSearchForm extends Model
             'month' => 'Месяц',
             'dateFrom' => 'dateFrom',
             'store_id' => 'Магазин',
-            'admin_name' => 'Фрагмент ФИО',
-            'admin_group_id' => 'Должность'
+//            'admin_name' => 'Фрагмент ФИО',
+//            'admin_group_id' => 'Должность'
         ];
     }