add kulcsok, add tartós beszedés, add ticket type with intallments

This commit is contained in:
2016-01-20 14:48:34 +01:00
parent d1638a19de
commit d7cc84e78f
111 changed files with 4077 additions and 12 deletions

View File

@@ -75,6 +75,16 @@ use kartik\widgets\DatePicker;
<?= $form->field($model, 'tax_number')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'bank_name')->textInput(['maxlength' => true])->label("Bank neve") ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'bank_account')->textInput(['maxlength' => true])->label("Bankszámlaszám") ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'country')->textInput(['maxlength' => true]) ?>

View File

@@ -79,6 +79,16 @@ use kartik\widgets\DatePicker;
<?= $form->field($model, 'tax_number')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'bank_name')->textInput(['maxlength' => true])->label("Bank neve") ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'bank_account')->textInput(['maxlength' => true])->label("Bankszámlaszám") ?>
</div>
</div>
<div class='row'>
<div class='col-md-6'>
<?= $form->field($model, 'country')->textInput(['maxlength' => true]) ?>

View File

@@ -44,6 +44,8 @@ $this->params['breadcrumbs'][] = $this->title;
'image',
'description',
'tax_number',
'bank_name',
'bank_account',
'country',
'zip',
'city',

View File

@@ -0,0 +1,124 @@
<?php
use common\models\TicketInstallmentRequest;
use common\models\Ticket;
?>
<table class="table table-striped">
<tr>
<th>
Megbízás azonosító
</th>
<td>
<?php echo "".$model['request_id_ticket_installment_request'];?>
</td>
<th>
Megbízás státusza
</th>
<td>
<?php echo TicketInstallmentRequest::toStatusName( $model['request_status'] );?>
</td>
<th>
Megbízás összege
</th>
<td>
<?php echo $model['request_money'] ." Ft";?>
</td>
<tr>
<tr>
<th>
Megbízás inditására irányzott dátum
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_request_target_time_at'] );?>
</td>
<th>
Megbízás elindításának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_sent_at'] );?>
</td>
<th>
Megbízás feldoglozásának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_processed_at'] );?>
</td>
<tr>
<tr>
<th>
Megbízás prioritása
</th>
<td>
<?php echo $model['request_priority'] ;?>
</td>
<th>
</th>
<td>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Vendég azonosító
</th>
<td>
<?php echo "". $model['customer_id_customer'];?>
</td>
<th>
Vendég neve
</th>
<td>
<?php echo $model['customer_name'];?>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Bérlet azonosító
</th>
<td>
<?php echo "". $model['ticket_id_ticket'];?>
</td>
<th>
Bérlet típus
</th>
<td>
<?php echo $model['ticket_type_name'];?>
</td>
<th>
Bérlet státusza
</th>
<td>
<?php echo Ticket::toStatusName( $model['ticket_status'] );?>
</td>
<tr>
<tr>
<th>
Bérlet érvényességének kezdete
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_start'] ) ;?>
</td>
<th>
Bérlet érvényességének vége
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_end'] ) ;?>
</td>
<th>
</th>
<td>
</td>
<tr>
</table>

View File

@@ -0,0 +1,51 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\TicketInstallmentRequest */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ticket-installment-request-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'id_ticket')->textInput() ?>
<?= $form->field($model, 'id_customer')->textInput() ?>
<?= $form->field($model, 'id_transfer')->textInput() ?>
<?= $form->field($model, 'status')->textInput() ?>
<?= $form->field($model, 'money')->textInput() ?>
<?= $form->field($model, 'customer_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'bank_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'bank_address')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'bank_account')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'priority')->textInput() ?>
<?= $form->field($model, 'request_sent_at')->textInput() ?>
<?= $form->field($model, 'request_processed_at')->textInput() ?>
<?= $form->field($model, 'request_target_time_at')->textInput() ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/ticket_installment_request', 'Create') : Yii::t('common/ticket_installment_request', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,124 @@
<?php
use common\models\TicketInstallmentRequest;
use common\models\Ticket;
?>
<table class="table table-striped">
<tr>
<th>
Megbízás azonosító
</th>
<td>
<?php echo "".$model['request_id_ticket_installment_request'];?>
</td>
<th>
Megbízás státusza
</th>
<td>
<?php echo TicketInstallmentRequest::toStatusName( $model['request_status'] );?>
</td>
<th>
Megbízás összege
</th>
<td>
<?php echo $model['request_money'] ." Ft";?>
</td>
<tr>
<tr>
<th>
Megbízás inditására irányzott dátum
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_request_target_time_at'] );?>
</td>
<th>
Megbízás elindításának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_sent_at'] );?>
</td>
<th>
Megbízás feldoglozásának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_processed_at'] );?>
</td>
<tr>
<tr>
<th>
Megbízás prioritása
</th>
<td>
<?php echo $model['request_priority'] ;?>
</td>
<th>
</th>
<td>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Vendég azonosító
</th>
<td>
<?php echo "". $model['customer_id_customer'];?>
</td>
<th>
Vendég neve
</th>
<td>
<?php echo $model['customer_name'];?>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Bérlet azonosító
</th>
<td>
<?php echo "". $model['ticket_id_ticket'];?>
</td>
<th>
Bérlet típus
</th>
<td>
<?php echo $model['ticket_type_name'];?>
</td>
<th>
Bérlet státusza
</th>
<td>
<?php echo Ticket::toStatusName( $model['ticket_status'] );?>
</td>
<tr>
<tr>
<th>
Bérlet érvényességének kezdete
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_start'] ) ;?>
</td>
<th>
Bérlet érvényességének vége
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_end'] ) ;?>
</td>
<th>
</th>
<td>
</td>
<tr>
</table>

View File

@@ -0,0 +1,142 @@
<?php
use common\models\TicketInstallmentRequest;
use common\models\Ticket;
use yii\helpers\Html;
?>
<table class="table table-striped">
<tr>
<th>
Beküldésre jelöl
</th>
<td>
<?php echo Html::checkbox("TicketInstallmentMarkForSendForm[items][]",false, ['class' => 'pending-request', 'value' => $model['request_id_ticket_installment_request']])?>
</td>
<th>
</th>
<td>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Megbízás azonosító
</th>
<td>
<?php echo "".$model['request_id_ticket_installment_request'];?>
</td>
<th>
Megbízás státusza
</th>
<td>
<?php echo TicketInstallmentRequest::toStatusName( $model['request_status'] );?>
</td>
<th>
Megbízás összege
</th>
<td>
<?php echo $model['request_money'] ." Ft";?>
</td>
<tr>
<tr>
<th>
Megbízás inditására irányzott dátum
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_request_target_time_at'] );?>
</td>
<th>
Megbízás elindításának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_sent_at'] );?>
</td>
<th>
Megbízás feldoglozásának ideje
</th>
<td>
<?php echo \Yii::$app->formatter->asDatetime( $model['request_processed_at'] );?>
</td>
<tr>
<tr>
<th>
Megbízás prioritása
</th>
<td>
<?php echo $model['request_priority'] ;?>
</td>
<th>
</th>
<td>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Vendég azonosító
</th>
<td>
<?php echo "". $model['customer_id_customer'];?>
</td>
<th>
Vendég neve
</th>
<td>
<?php echo $model['customer_name'];?>
</td>
<th>
</th>
<td>
</td>
<tr>
<tr>
<th>
Bérlet azonosító
</th>
<td>
<?php echo "". $model['ticket_id_ticket'];?>
</td>
<th>
Bérlet típus
</th>
<td>
<?php echo $model['ticket_type_name'];?>
</td>
<th>
Bérlet státusza
</th>
<td>
<?php echo Ticket::toStatusName( $model['ticket_status'] );?>
</td>
<tr>
<tr>
<th>
Bérlet érvényességének kezdete
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_start'] ) ;?>
</td>
<th>
Bérlet érvényességének vége
</th>
<td>
<?php echo \Yii::$app->formatter->asDate( $model['ticket_end'] ) ;?>
</td>
<th>
</th>
<td>
</td>
<tr>
</table>

View File

@@ -0,0 +1,137 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\TicketInstallmentRequest;
use common\models\TicketType;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
/* @var $this yii\web\View */
/* @var $model backend\models\TicketInstallmentRequestSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$ticketTypeOptions = ['' => 'Mind'] + ArrayHelper::map(TicketType::read(), 'id_ticket_type', 'name');
?>
<div class="ticket-installment-request-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'id_ticket_installment_request')->label("Megbízás azonosító") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_ticket')->label("Bérlet azonosító") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_customer')->label("Vendég azonosító") ?>
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'customer_name')->label("Vendég neve") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'status')->label("Megbízás státusza")->dropDownList( ['' => 'Mind' ] + TicketInstallmentRequest::statuses()) ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_ticket_type')->label("Bérlet típus")->dropDownList( $ticketTypeOptions) ?>
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'start')->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás inditására irányzott kezdete ( inklúzív )') ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'end') ->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás inditására irányzott dátum vége ( exklúzív )') ?>
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'sentStart')->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás elindításának időszak kezdete ( inklúzív )') ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'sentEnd') ->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás elindításának időszak vége ( exklúzív )') ?>
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'processedStart')->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás feldolgozása időszak kezdete ( inklúzív )') ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'processedEnd') ->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás feldolgozása időszak vége ( exklúzív )') ?>
</div>
</div>
<?php // echo $form->field($model, 'money') ?>
<?php // echo $form->field($model, 'customer_name') ?>
<?php // echo $form->field($model, 'bank_name') ?>
<?php // echo $form->field($model, 'bank_address') ?>
<?php // echo $form->field($model, 'bank_account') ?>
<?php // echo $form->field($model, 'priority') ?>
<?php // echo $form->field($model, 'request_sent_at') ?>
<?php // echo $form->field($model, 'request_processed_at') ?>
<?php // echo $form->field($model, 'request_target_time_at') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('common/ticket_installment_request', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('common/ticket_installment_request', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,76 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\TicketInstallmentRequest;
use common\models\TicketType;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
/* @var $this yii\web\View */
/* @var $model backend\models\TicketInstallmentRequestSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$ticketTypeOptions = ['' => 'Mind'] + ArrayHelper::map(TicketType::read(), 'id_ticket_type', 'name');
?>
<div class="ticket-installment-request-search">
<?php $form = ActiveForm::begin([
'action' => ['pending'],
'method' => 'get',
]); ?>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'id_ticket_installment_request')->label("Megbízás azonosító") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_ticket')->label("Bérlet azonosító") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_customer')->label("Vendég azonosító") ?>
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'customer_name')->label("Vendég neve") ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_ticket_type')->label("Bérlet típus")->dropDownList( $ticketTypeOptions) ?>
</div>
<div class="col-md-3">
</div>
</div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'start')->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás inditására irányzott kezdete ( inklúzív )') ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'end') ->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
])->label('Megbízás inditására irányzott dátum vége ( exklúzív )') ?>
</div>
</div>
<div class="form-group">
<?= Html::submitButton(Yii::t('common/ticket_installment_request', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('common/ticket_installment_request', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,21 @@
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\TicketInstallmentRequest */
$this->title = Yii::t('common/ticket_installment_request', 'Create Ticket Installment Request');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket_installment_request', 'Ticket Installment Requests'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ticket-installment-request-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>

View File

@@ -0,0 +1,29 @@
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use yii\base\Widget;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\TicketInstallmentRequestSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/ticket_installment_request', 'Bérlet fizetési megbízások');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ticket-installment-request-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
echo ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_index_view'
]);
?>
</div>

View File

@@ -0,0 +1,44 @@
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use yii\base\Widget;
use kartik\widgets\ActiveForm;
use backend\assets\PendingRequestAsset;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\TicketInstallmentRequestSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/ticket_installment_request', 'Giro köteg létrehozása');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php
PendingRequestAsset::register($this);
?>
<div class="ticket-installment-request-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php
echo ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_download_giro_view'
]);
?>
<?php $form = ActiveForm::begin([
'action' => Url::current(),
'method' => 'post',
]); ?>
<?php echo $form->field($model, 'action')->hiddenInput()->label(false) ?>
<div class="form-group">
<?= Html::submitButton("Köteg létrehozása", ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,50 @@
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use yii\base\Widget;
use kartik\widgets\ActiveForm;
use backend\assets\PendingRequestAsset;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\TicketInstallmentRequestSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/ticket_installment_request', 'Indításra váró bérlet fizetési megbízások');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php
PendingRequestAsset::register($this);
?>
<div class="ticket-installment-request-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search_pending', ['model' => $searchModel]); ?>
<div>
<label>
Mindent ki/be
<?php echo Html::checkbox("select-all",false, ['id' => 'select-all-pending' ]);?>
</label>
</div>
<?php $form = ActiveForm::begin([
'action' => Url::current(),
'method' => 'post',
]); ?>
<?php
echo ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_pending_view'
]);
?>
<div class="form-group">
<?= Html::submitButton("Beküldendőnek jelöl", ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,85 @@
<?php
use common\components\giro\GiroBeszedLab;
use common\components\giro\GiroBeszedFej;
use yii\helpers\Html;
use common\components\giro\GiroBeszedTetel;
use common\components\giro\GiroBeszed;
use common\components\giro\GiroDETSTAFej;
$data = iconv("utf-8","CP852","árvíztűrő tükörfúrógép");
echo $data;
echo mb_detect_encoding($data, "auto");
$fej = new GiroBeszedFej();
$fej->duplumKod = 1;
$fej->kezdemenyezoAzonosito = "A25366936T244" ;//"66658092128";
$fej->uzenetSorszam ->osszeallitasDatuma = "20160120";
$fej->uzenetSorszam->sorszam = 1;
$fej->kezdemenyezoBankszamla->szamlaszam = "5860025215371128";//"5860025215371128";
// $fej->kezdemenyezoBankszamla->bankszerv = "58600252"; //"TAKBHUHB";
$fej->ertesitesiHatarido = "";
$fej->kezdemenyezoCegNeve = "Cutler Four kft";
echo "fej<br>";
echo "'".str_replace(' ', '&nbsp;',Html::encode($fej->toString()) )."'";
echo "<br>";
$tetel = new GiroBeszedTetel();
$tetel->tetelSorszam = 1;
$tetel->terhelesiDatum = "20160122";
$tetel->osszeg = "1000";
// $tetel->kotelezettBankszamla->bankszerv = "58600252";
$tetel->kotelezettBankszamla->szamlaszam = "5860025215371128";
$tetel->ugyfelazonositoAKezdemenyezonel = 1;
$tetel->ugyfelNeve = "Schneider Roland";
$tetel->ugyfelCime = "Mosonmagyarovar, Gardonyi 31";
$tetel->szamlaTulajdonosNeve = "Schneider Roland";
$tetel->kozlemeny = "Berlet";
echo "tetel<br>";
echo "'".str_replace(' ', '&nbsp;',($tetel->toString())) ."'";
echo "<br>";
$lab = new GiroBeszedLab();
$lab->tetelekOsszerteke = 1000;
$lab->tetelekSzama=1;
echo "<br>lab<br>";
echo str_replace(' ', '&nbsp;', $lab->toString() );
$content = GiroBeszed::createFileContent(1, []);
echo "'".str_replace(' ', '&nbsp;', Html::encode(GiroBeszed::createFileContent(1, [])) ."'");
$data = iconv("windows-1252","ASCII",$content);
// $filename = \Yii::$app->basePath . "/" ."giro" . rand(0,10000)."txt";
// $myfile = fopen($filename,'a');
// fwrite($myfile, $data);
// fclose($myfile);
$dfej = new GiroDETSTAFej();
$dfej->kezdemenyezoAzonosito = "A25366936T244";
$dfej->csoportosUzenetSorszam ->osszeallitasDatuma = "20160120";
$dfej->csoportosUzenetSorszam->sorszam = 1;
$dfej->detstaUzenetSorszam ->osszeallitasDatuma = "20160120";
$dfej->detstaUzenetSorszam->sorszam = 1;
$dfej->ido = "100000";
echo "dfej<br>";
echo $dfej->toString();
echo "<br>";
$s = "01DETSTA0A25366936T244201601200001201601200001100000";
$def2 = GiroDETSTAFej::parse($s);
print_r($def2);
?>

View File

@@ -0,0 +1,23 @@
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\TicketInstallmentRequest */
$this->title = Yii::t('common/ticket_installment_request', 'Update {modelClass}: ', [
'modelClass' => 'Ticket Installment Request',
]) . ' ' . $model->id_ticket_installment_request;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket_installment_request', 'Ticket Installment Requests'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id_ticket_installment_request, 'url' => ['view', 'id' => $model->id_ticket_installment_request]];
$this->params['breadcrumbs'][] = Yii::t('common/ticket_installment_request', 'Update');
?>
<div class="ticket-installment-request-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>

View File

@@ -0,0 +1,50 @@
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\TicketInstallmentRequest */
$this->title = $model->id_ticket_installment_request;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket_installment_request', 'Ticket Installment Requests'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ticket-installment-request-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/ticket_installment_request', 'Update'), ['update', 'id' => $model->id_ticket_installment_request], ['class' => 'btn btn-primary']) ?>
<?= Html::a(Yii::t('common/ticket_installment_request', 'Delete'), ['delete', 'id' => $model->id_ticket_installment_request], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => Yii::t('common/ticket_installment_request', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id_ticket_installment_request',
'id_ticket',
'id_customer',
'id_transfer',
'status',
'money',
'customer_name',
'bank_name',
'bank_address',
'bank_account',
'priority',
'request_sent_at',
'request_processed_at',
'request_target_time_at',
'created_at',
'updated_at',
],
]) ?>
</div>

View File

@@ -56,8 +56,12 @@ use yii\helpers\ArrayHelper;
<?= $form->field($model, 'status')->checkbox( ['value' => 10, 'label' => Yii::t('common/ticket_type', "Active") ]) ?>
<?= $form->field($model, 'flag_student')->checkbox( ['value' => 1, 'label' => Yii::t('common/ticket_type', "Student") ]) ?>
<?= mkTitle("Csoportos beszedés")?>
<?= $form->field($model, 'installment_enabled')->checkbox( ['value' => 1, 'label' => Yii::t('common/ticket_type', "Csoportos beszedéses a bruttó áron felül") ]) ?>
<p>A részletek havonta kerülnek beszedésre</p>
<?= $form->field($model, 'installment_money')->textInput() ?>
<?= $form->field($model, 'installment_count')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/ticket_type', 'Create') : Yii::t('common/ticket_type', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>

View File

@@ -52,6 +52,12 @@ $this->params['breadcrumbs'][] = $this->title;
],
'created_at:datetime',
'updated_at:datetime',
[
'attribute' => 'installment_enabled',
'value' => ( $model->isInstallment() ? Yii::t('common', 'Yes' ) : Yii::t('common', 'No' ) ),
],
'installment_money',
'installment_count',
],
]) ?>

View File

@@ -54,6 +54,9 @@ $userOptions = ['' => 'Mind'] + ArrayHelper::map($model->users, 'id', 'userna
]
]) ?>
</div>
<div class='col-md-4'>
<?= $form->field($model, 'id_ticket')->textInput() ?>
</div>
</div>
<div class='row'>
<div class='col-md-4'>

View File

@@ -77,6 +77,11 @@ $this->params['breadcrumbs'][] = $this->title;
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'id_ticket',
'value' => 'id_ticket',
'label' => 'B. Azonosító'
],
[
'attribute' => 'id_customer',
'value' => 'customerName'

View File

@@ -0,0 +1,27 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Ugiro */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ugiro-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'id_user')->textInput() ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/ugiro', 'Create') : Yii::t('common/ugiro', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,33 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\UgiroSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ugiro-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'id_ugiro') ?>
<?= $form->field($model, 'id_user') ?>
<?= $form->field($model, 'created_at') ?>
<?= $form->field($model, 'updated_at') ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('common/ugiro', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('common/ugiro', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -0,0 +1,21 @@
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Ugiro */
$this->title = Yii::t('common/ugiro', 'Create Ugiro');
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ugiro', 'Ugiros'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ugiro-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>

View File

@@ -0,0 +1,46 @@
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\UgiroSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/ugiro', 'Kötegek');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ugiro-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'id_ugiro',
'label' => 'Köteg azonosító'
],
[
'attribute' => 'user.username',
'label' => 'Felhasnáló'
],
[
'attribute' => 'statusName',
'label' => 'Státusz'
],
[
'attribute' => 'created_at',
'label' => 'Létrehozva',
'format' =>'datetime'
],
['class' => 'yii\grid\ActionColumn',
'template' => '{view}'
],
],
]); ?>
</div>

View File

@@ -0,0 +1,23 @@
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Ugiro */
$this->title = Yii::t('common/ugiro', 'Update {modelClass}: ', [
'modelClass' => 'Ugiro',
]) . ' ' . $model->id_ugiro;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ugiro', 'Ugiros'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id_ugiro, 'url' => ['view', 'id' => $model->id_ugiro]];
$this->params['breadcrumbs'][] = Yii::t('common/ugiro', 'Update');
?>
<div class="ugiro-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>

View File

@@ -0,0 +1,58 @@
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\helpers\Url;
use common\models\Ugiro;
/* @var $this yii\web\View */
/* @var $model common\models\Ugiro */
$this->title = "Köteg részletei";
$this->params['breadcrumbs'][] = ['label' => "Kötegek", 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ugiro-view">
<h1><?= Html::encode($this->title) ?></h1>
<?php
$attributes = [
[
'attribute' => 'id_ugiro',
'label' => 'Köteg azonosító'
],
[
'attribute' => 'user.username',
'label' => 'Felhasználó'
],
[
'attribute' => 'statusName',
'label' => 'Státusz'
],
[
'attribute' => 'created_at',
'label' => 'Létrehozva',
'format' =>'datetime'
],
[
'attribute' => 'path',
'label' => 'Köteg Fájl',
'value' => Html::a( "Letöltés" , Url::base() ."/". $model->path , ['target' =>'_blank' ,'download' =>'CS-BESZED.' .$model->id_ugiro ] ),
'format' => 'raw'
],
];
if ( $model->status == Ugiro::$STATUS_FINISHED){
}
?>
<?= DetailView::widget([
'model' => $model,
'attributes' => $attributes,
]) ?>
</div>