92 lines
3.5 KiB
PHP
92 lines
3.5 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use common\models\Transfer;
|
|
use yii\helpers\Url;
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Transfer */
|
|
|
|
?>
|
|
<?php
|
|
$formatter = Yii::$app->formatter;
|
|
?>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class='row row-transfer'>
|
|
<div class='col-md-4'>
|
|
<dl class="dl-horizontal dl-transfer">
|
|
|
|
|
|
|
|
<dt><?php echo "Tranz. azonosító" ?></dt>
|
|
<dd><?php echo ( Html::getAttributeValue($model, 'id_transfer') ) ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'payment_method') ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'paymentMethodName') ?></dd>
|
|
|
|
<dt><?php echo "Kiadás ideje" ?></dt>
|
|
<dd><?php echo $formatter->asDatetime( Html::getAttributeValue($model, 'created_at') ) ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'paid_at') ?></dt>
|
|
<dd><?php echo $formatter->asDatetime( Html::getAttributeValue($model, 'paid_at') ) ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'status') ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'statusName') ?></dd>
|
|
<dt><?php echo "Kassza" ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'accountName') ?></dd>
|
|
|
|
</dl>
|
|
</div>
|
|
<div class='col-md-4'>
|
|
<dl class="dl-horizontal dl-transfer">
|
|
<dt><?php echo $model->getAttributeLabel( 'type') ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'transferTypeName') ?></dd>
|
|
|
|
<dt>Megnevezés</dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'objectName') ?></dd>
|
|
|
|
<dt><?php echo "Kiadta" ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'userName') ?></dd>
|
|
<dt><?php echo "Fizette" ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'paidByName') ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'id_customer') ?></dt>
|
|
<dd><?php echo Html::getAttributeValue($model, 'customerName') ?></dd>
|
|
</dl>
|
|
</div>
|
|
<div class='col-md-3'>
|
|
<dl class="dl-horizontal dl-transfer">
|
|
<dt><?php echo $model->getAttributeLabel( 'item_price') ?></dt>
|
|
<dd class="text-right"><?php echo Html::getAttributeValue($model, 'item_price') ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'count') ?></dt>
|
|
<dd class="text-right"><?php echo Html::getAttributeValue($model, 'count') ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'id_discount') ?></dt>
|
|
<dd class="text-right"><?php echo Html::getAttributeValue($model, 'discountName') ?></dd>
|
|
|
|
<dt><?php echo $model->getAttributeLabel( 'money') ?></dt>
|
|
<dd class="text-right"><?php echo Html::getAttributeValue($model, 'signedMoney') ?></dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-11 text-right">
|
|
<?php
|
|
if ( $model->status != Transfer::STATUS_STORNO){
|
|
echo Html::a('<span class="glyphicon glyphicon-trash"></span>Törlés', Url::toRoute(['delete','id' =>$model->id_transfer]), [
|
|
'title' => Yii::t('yii', 'Delete'),
|
|
'data-confirm' => Yii::t('yii', 'Are you sure to delete this item?'),
|
|
'data-method' => 'post',
|
|
'class' => 'btn btn-danger',
|
|
// 'style' =>'margin-right: 12px;'
|
|
]);}?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|