add money movement type 'in', add daily transfers

This commit is contained in:
2015-12-31 00:19:38 +01:00
parent 1bcc435ab6
commit 72fc139674
13 changed files with 896 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use frontend\models\TransferMoneyMovementSearch;
use common\models\Account;
use frontend\models\TransferListSearch;
/**
* TransferController implements the CRUD actions for Transfer model.
@@ -55,13 +56,31 @@ class TransferController extends Controller
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$searchModel->totalsTransfers(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Lists all Transfer models.
* @return mixed
*/
public function actionList()
{
$searchModel = new TransferListSearch();
$searchModel->accounts = Account::read();
$searchModel->load(Yii::$app->request->queryParams);
$searchModel->search(Yii::$app->request->queryParams);
return $this->render('list', [
'searchModel' => $searchModel,
]);
}
/**
@@ -76,6 +95,7 @@ class TransferController extends Controller
]);
}
/**
* Creates a new Transfer model.
* If creation is successful, the browser will be redirected to the 'view' page.