fix findByDate in ReportSearchForm

This commit is contained in:
iIronside 2023-01-10 17:45:53 +03:00
parent 354c6fd497
commit 18ca568485

View File

@ -70,6 +70,7 @@ class ReportSearchForm extends Model
{
return Reports::find()
->where(['between', 'reports.created_at', $this->fromDate, $this->toDate])
->andWhere(['user_card_id' => $this->user_id])
->all();
}
}