add non cash money display to account state

This commit is contained in:
2016-10-05 07:56:50 +02:00
parent 7975d6ffc9
commit 8585286150
8 changed files with 454 additions and 279 deletions

View File

@@ -1,16 +1,12 @@
<?php
namespace common\components\accountstate;
use yii\base\Widget;
use common\models\AccountState;
use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\widgets\DetailView;
/**
* This is the model class for widget display bank notes.
*
* @property common\models\AccountState $model
* @property \common\models\AccountState $model
* */
class AccountStateWidget extends Widget{
@@ -59,6 +55,16 @@ class AccountStateWidget extends Widget{
'attribute' =>'money',
'value' => \Yii::$app->formatter->asInteger($this->model->money) ." Ft",
],
[
'attribute' => 'non_cash_money',
'label' => 'Készpénz alapú forgalom',
'value' => \Yii::$app->formatter->asInteger($this->model->collection_money) ." Ft",
],
[
'attribute' => 'non_cash_money',
'label' => 'Nem készpénz alapú forgalom',
'value' => \Yii::$app->formatter->asInteger($this->model->non_cash_money) ." Ft",
],
'user.username',
[
'attribute' => 'start_date',