add payment method colum and money total to backend/transfer/index

This commit is contained in:
2016-03-02 08:07:33 +01:00
parent 055fc541ea
commit 11abfc54f4
7 changed files with 63 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ use yii\base\Widget;
use yii\base\Object;
use yii\data\ArrayDataProvider;
use common\components\AccountStatisticWidget;
use common\components\DataProviderTotal;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\TransferSearch */
@@ -41,11 +42,14 @@ $this->params['breadcrumbs'][] = $this->title;
<?= GridView::widget([
'tableOptions' => ['class' => 'table table-striped table-bordered table-transfer'],
'dataProvider' => $dataProvider,
'showFooter'=>TRUE,
'columns' => [
[
'attribute' => 'id_transfer',
'value' => 'id_transfer'
'value' => 'id_transfer',
'footer' => 'Összesen *'
],
[
'attribute' => 'type',
@@ -83,13 +87,20 @@ $this->params['breadcrumbs'][] = $this->title;
],
[
'contentOptions' =>[ 'class' => 'money' ],
'footerOptions' =>[ 'class' => 'money' ],
'attribute' => 'money',
'value' => 'signedMoney'
'value' => 'signedMoney' ,
'footer'=>DataProviderTotal::pageTotal($dataProvider->models,'signedMoney'),
],
[
'attribute' => 'status',
'value' => 'statusName'
],
],
[
'attribute' => 'payment_method',
'value' => 'paymentMethodName',
'label' => "Fizetési mód"
],
'created_at:datetime',
'paid_at:datetime',
@@ -99,4 +110,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
]); ?>
<p>
* A láblécben szereplő összesítések csak a táblázat aktuális oldalára vonatkoznak!
</p>
</div>