From: Alexander Smirnov Date: Fri, 31 Jan 2025 14:10:08 +0000 (+0300) Subject: [ERP-301] комментарий до будущего рефактора X-Git-Tag: 1.7~26^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a2125f3d694d8b730f42bfd3efb9e54634293077;p=erp24_rep%2Fyii-erp24%2F.git [ERP-301] комментарий до будущего рефактора --- diff --git a/erp24/actions/payroll/ListAdminsAction.php b/erp24/actions/payroll/ListAdminsAction.php index 78142921..2e9922da 100755 --- a/erp24/actions/payroll/ListAdminsAction.php +++ b/erp24/actions/payroll/ListAdminsAction.php @@ -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') diff --git a/erp24/forms/payroll/YearMonthSearchForm.php b/erp24/forms/payroll/YearMonthSearchForm.php index 22921057..c2bdbb46 100755 --- a/erp24/forms/payroll/YearMonthSearchForm.php +++ b/erp24/forms/payroll/YearMonthSearchForm.php @@ -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' => 'Должность' ]; }