$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')
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()
$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;
}
'month' => 'Месяц',
'dateFrom' => 'dateFrom',
'store_id' => 'Магазин',
- 'admin_name' => 'Фрагмент ФИО',
- 'admin_group_id' => 'Должность'
+// 'admin_name' => 'Фрагмент ФИО',
+// 'admin_group_id' => 'Должность'
];
}