/** * Lists all Sales models. * @return mixed */ public function actionIndex() { $searchModel = new SalesSearch(); $searchModel->branch_id = Yii::$app->profile->branch_id; $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }