add card.flag implementation
This commit is contained in:
@@ -12,6 +12,7 @@ use yii\base\Object;
|
||||
use common\models\TicketInstallmentRequest;
|
||||
use common\models\Contract;
|
||||
use common\components\Helper;
|
||||
use common\models\Card;
|
||||
|
||||
/**
|
||||
* @property $cart string name of cart, into we put the ticket
|
||||
@@ -158,9 +159,14 @@ class TicketCreate extends Ticket{
|
||||
$this->appendToUserCart();
|
||||
$this->appendToCustomerCart();
|
||||
$this->addContract($insert);
|
||||
$this->updateCardFlag();
|
||||
|
||||
}
|
||||
|
||||
protected function updateCardFlag(){
|
||||
Card::updateCardFlagTicket($this->id_card);
|
||||
}
|
||||
|
||||
public function addContract($insert){
|
||||
if ($insert){
|
||||
$ticketType = TicketType::findOne($this->id_ticket_type);
|
||||
|
||||
Reference in New Issue
Block a user