add non cash money display to account state
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user