add collections to backend
This commit is contained in:
@@ -44,6 +44,7 @@ class CollectionController extends Controller
|
||||
$searchModel->accounts = Account::read();
|
||||
$searchModel->accountMap = Account::toAccaountMap($searchModel->accounts);
|
||||
|
||||
|
||||
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
|
||||
$searchModel->searchTotal();
|
||||
|
||||
@@ -62,7 +63,7 @@ class CollectionController extends Controller
|
||||
{
|
||||
$model = $this->findModel($id);
|
||||
|
||||
$accounts = Account::read();
|
||||
$accounts = Account::read();
|
||||
$accountMap = Account::toAccaountMap($accounts);
|
||||
|
||||
$totals = Transfer::mkTotals($model->start, $model->end, $model->id_user, null, $model->id_account, $accounts, $accountMap);
|
||||
|
||||
Reference in New Issue
Block a user