add backed transfer list chages. Add conffir dkailogsW
This commit is contained in:
@@ -61,7 +61,18 @@ use kartik\widgets\DateTimePicker;
|
||||
<?= $form->field($model, 'customer_name')->label("Vendég") ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class='col-md-3'>
|
||||
<?= $form->field($model, 'transfer_name')->label("Megnevezés") ?>
|
||||
</div>
|
||||
<div class='col-md-3'>
|
||||
<?= $form->field($model, 'card_number')->label("Kártya szám") ?>
|
||||
</div>
|
||||
<div class='col-md-3'>
|
||||
</div>
|
||||
<div class='col-md-3'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton(Yii::t('frontend/transfer', 'Search'), ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
@@ -28,18 +28,126 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<div class="transfer-index">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
<div class="clearfix">
|
||||
<?php echo $this->render('_search', ['model' => $searchModel, 'accounts' => $accounts,'users' => $users,]); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="clearfix" style="margin-bottom: 6px;">
|
||||
<span class="pull-left">
|
||||
Exportálás:
|
||||
</span>
|
||||
<?php
|
||||
if ( $dataProvider->getTotalCount() < 1000) {
|
||||
echo Html::a(
|
||||
"XLS", \yii\helpers\Url::current([Html::getInputName($searchModel, 'output') => 'xls']),
|
||||
['class' => 'btn btn-primary pull-left', 'style' => 'margin-left: 12px;']
|
||||
);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
echo AccountStatisticWidget::widget([
|
||||
'totals' => $searchModel->totals
|
||||
]);
|
||||
|
||||
?>
|
||||
|
||||
<h2>Tranzakciók</h2>
|
||||
<?= GridView::widget([
|
||||
<?= GridView::widget([
|
||||
'tableOptions' => ['class' => 'table table-striped table-bordered table-transfer'],
|
||||
'dataProvider' => $dataProvider,
|
||||
'showFooter'=>TRUE,
|
||||
|
||||
'columns' => [
|
||||
|
||||
[
|
||||
'attribute' => 'transfer_id_transfer',
|
||||
'label' => 'Tranz. Azon.',
|
||||
'footer' => 'Oldalon / Összesen'
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_type',
|
||||
'label' => 'Típus'
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_name',
|
||||
'label' => 'Megnevezés'
|
||||
],
|
||||
[
|
||||
'attribute' => 'user_username',
|
||||
'label' => 'Kiadta'
|
||||
],
|
||||
[
|
||||
'attribute' => 'paid_by_username',
|
||||
'label' => 'Fizette' ,
|
||||
],
|
||||
[
|
||||
'attribute' => 'customer_name',
|
||||
'label' => 'Vendég'
|
||||
],
|
||||
[
|
||||
'attribute' => 'account_name',
|
||||
'label' => 'Kassza'
|
||||
],
|
||||
[
|
||||
'contentOptions' =>[ 'class' => 'item-price' ],
|
||||
'attribute' => 'transfer_item_price',
|
||||
'label' => 'Egység ár'
|
||||
],
|
||||
[
|
||||
'contentOptions' =>[ 'class' => 'count' ],
|
||||
'attribute' => 'transfer_count',
|
||||
'label' => 'Mennyiség',
|
||||
'footer'=>DataProviderTotal::pageTotal($dataProvider->models,'transfer_count') .' / ' .$searchModel->all['total_count'],
|
||||
],
|
||||
[
|
||||
'contentOptions' =>[ 'class' => 'money' ],
|
||||
'footerOptions' =>[ 'class' => 'money' ],
|
||||
'attribute' => 'transfer_money',
|
||||
'label' => 'Összeg',
|
||||
'footer'=>DataProviderTotal::pageTotal($dataProvider->models,'transfer_money') .' / ' .$searchModel->all['total_money'],
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_status',
|
||||
'label' => 'Státusz'
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_payment_method',
|
||||
'label' => "Fizetési mód"
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_created_at',
|
||||
'label' => "Kiadva",
|
||||
'format' => 'datetime'
|
||||
],
|
||||
[
|
||||
'attribute' => 'transfer_paid_at',
|
||||
'label' => "Fizetve",
|
||||
'format' => 'datetime'
|
||||
],
|
||||
[
|
||||
'attribute' => 'ticket_start',
|
||||
'label' => "Érv. tól",
|
||||
'format' => 'date'
|
||||
],
|
||||
[
|
||||
'attribute' => 'ticket_end',
|
||||
'label' => "Érv. ig",
|
||||
'format' => 'date'
|
||||
],
|
||||
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{view}'
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
|
||||
<?php /* echo GridView::widget([
|
||||
'tableOptions' => ['class' => 'table table-striped table-bordered table-transfer'],
|
||||
'dataProvider' => $dataProvider,
|
||||
'showFooter'=>TRUE,
|
||||
@@ -90,7 +198,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'footerOptions' =>[ 'class' => 'money' ],
|
||||
'attribute' => 'money',
|
||||
'value' => 'signedMoney' ,
|
||||
'footer'=>DataProviderTotal::pageTotal($dataProvider->models,'signedMoney'),
|
||||
'footer'=>DataProviderTotal::pageTotal($dataProvider->models,'transfer_money'),
|
||||
],
|
||||
[
|
||||
'attribute' => 'status',
|
||||
@@ -108,7 +216,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'template' => '{view}'
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
]); */?>
|
||||
|
||||
<p>
|
||||
* A láblécben szereplő összesítések csak a táblázat aktuális oldalára vonatkoznak!
|
||||
|
||||
Reference in New Issue
Block a user