Add console command fix contract

This commit is contained in:
2016-09-13 20:29:12 +02:00
parent e1b5b8ed8f
commit 3b2aa0d8b3
2 changed files with 91 additions and 38 deletions

View File

@@ -132,7 +132,6 @@ class TicketInstallmentRequest extends \yii\db\ActiveRecord
public function getTicketExpirationDate(){
$contract = $this->contract;
$started_at = $contract->started_at;
$date = \DateTime::createFromFormat("Y-m-d H:i:s", $started_at, new \DateTimeZone( 'UTC'));
$date = DateUtil::addMonth( $date,$this->priority + 1 );