add payment method colum and money total to backend/transfer/index
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user