diff --git a/changelog.txt b/changelog.txt index c7f3141..3135475 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,5 @@ +-0.0.60 + - allow ticket installment request, when status is sent -0.0.59 - add inventory fix -0.0.58 diff --git a/common/components/DetStatTetelProcessor.php b/common/components/DetStatTetelProcessor.php index bd09388..07b6e57 100644 --- a/common/components/DetStatTetelProcessor.php +++ b/common/components/DetStatTetelProcessor.php @@ -59,8 +59,8 @@ class DetStatTetelProcessor extends Object { \Yii::info('Megbízás feldolgozása: megbízás azonosító=' .$this->megbizas->id_ticket_installment_request); if ($this->isAlreadeyAccepted ()) { -// \Yii::info('A megbízás feldolgozásának megszakítása. A megbízás már elfogadott: megbízás azonosító=' .$this->megbizas->id_ticket_installment_request); -// return; + \Yii::info('A megbízás feldolgozásának megszakítása. A megbízás már elfogadott: megbízás azonosító=' .$this->megbizas->id_ticket_installment_request); + return; } $this->rememberEredetiMegbizasStatus(); diff --git a/common/config/params.php b/common/config/params.php index 00eb1b8..02cd0a5 100644 --- a/common/config/params.php +++ b/common/config/params.php @@ -4,7 +4,7 @@ return [ 'supportEmail' => 'rocho02@gmail.com', 'infoEmail' => 'info@rocho-net.hu', 'user.passwordResetTokenExpire' => 3600, - 'version' => 'v0.0.59', + 'version' => 'v0.0.60', 'company' => 'movar',//gyor 'company_name' => "Freimann Kft.", 'product_visiblity' => 'account',// on reception which products to display. account or global diff --git a/common/models/TicketInstallmentRequest.php b/common/models/TicketInstallmentRequest.php index 5791dfe..2b832de 100644 --- a/common/models/TicketInstallmentRequest.php +++ b/common/models/TicketInstallmentRequest.php @@ -148,6 +148,10 @@ class TicketInstallmentRequest extends \yii\db\ActiveRecord return $this->status == static::$STATUS_PENDING ; } + public function isStatusSent(){ + return $this->status == static::$STATUS_SENT ; + } + public function getIdGiro(){ $result = null; $giro = $this->ugiro; diff --git a/frontend/views/contract/view.php b/frontend/views/contract/view.php index e6c68db..dc6b245 100644 --- a/frontend/views/contract/view.php +++ b/frontend/views/contract/view.php @@ -81,6 +81,10 @@ $this->params['breadcrumbs'][] = $this->title;
Bérlet priority?>
+ + + + @@ -100,7 +104,7 @@ $this->params['breadcrumbs'][] = $this->title;
Részlet azonosítóid_ticket_installment_request ?>
Esedékességi dátum formatter->asDate($inst->request_target_time_at)?>
isStatusPending() || $inst->isStatusRejected() ){ + if ( $inst->isStatusPending() || $inst->isStatusSent() || $inst->isStatusRejected() ){ echo Html::a("Fizetettnek jelölés és bérlet vásárló kosarába helyezése",['contract/payout' , 'id' => $inst->id_ticket_installment_request], [ 'data-method' => 'post', 'class' => 'btn btn-danger']); } ?>