implement feature 'put to cart ticket installment request'

This commit is contained in:
Roland Schneider
2019-03-26 07:29:47 +01:00
parent 3fce2c70c2
commit 8de73c0585
9 changed files with 444 additions and 203 deletions

View File

@@ -342,5 +342,12 @@ class TicketInstallmentRequest extends \yii\db\ActiveRecord
public function getStatusName(){
return static::toStatusName($this->status);
}
public static function canBePutToCustomerCart($status){
return $status == TicketInstallmentRequest::$STATUS_CANCELED
||
$status == TicketInstallmentRequest::$STATUS_REJECTED
||
$status == TicketInstallmentRequest::$STATUS_ACCEPTED_MANUAL;
}
}