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

@@ -3,6 +3,7 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use frontend\components\HtmlHelper;
use common\models\MoneyMovement;
/* @var $this yii\web\View */
/* @var $model common\models\MoneyMovement */
@@ -18,6 +19,8 @@ $accountOptions = HtmlHelper::mkAccountOptions($accounts);
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'id_account')->dropDownList($accountOptions) ?>
<?= $form->field($model, 'type')->dropDownList(MoneyMovement::types()) ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

View File

@@ -25,6 +25,10 @@ $this->params['breadcrumbs'][] = $this->title;
'accountName',
'userName',
[
'attribute' => 'type',
'value' =>'humanType'
],
'name',
'money',
'created_at:datetime',