implement feature 'put to cart ticket installment request'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user