add money movement type 'in', add daily transfers
This commit is contained in:
@@ -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]) ?>
|
||||
|
||||
|
||||
@@ -25,6 +25,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
'accountName',
|
||||
'userName',
|
||||
[
|
||||
'attribute' => 'type',
|
||||
'value' =>'humanType'
|
||||
],
|
||||
'name',
|
||||
'money',
|
||||
'created_at:datetime',
|
||||
|
||||
Reference in New Issue
Block a user