allow ticketinstallment manual payout on sent items
This commit is contained in:
parent
a858cedbba
commit
859c898264
@ -1,3 +1,5 @@
|
||||
-0.0.60
|
||||
- allow ticket installment request, when status is sent
|
||||
-0.0.59
|
||||
- add inventory fix
|
||||
-0.0.58
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -81,6 +81,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<div class="panel-heading">Bérlet <?php echo $inst->priority?></div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<td>Részlet azonosító</td>
|
||||
<td><?php echo $inst->id_ticket_installment_request ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Esedékességi dátum</td>
|
||||
<td><?php echo \Yii::$app->formatter->asDate($inst->request_target_time_at)?></td>
|
||||
@ -100,7 +104,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
</table>
|
||||
|
||||
<?php
|
||||
if ( $inst->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']);
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user