add contract to detsta processor
This commit is contained in:
@@ -114,7 +114,7 @@ class ReceptionForm extends Model
|
||||
$query = Contract::find();
|
||||
$query->andWhere(['id_customer' => $this->customer->id_customer ]);
|
||||
$query->andWhere([ '>=' ,'expired_at' , new Expression("now()") ]);
|
||||
$query->andWhere(["not in" , 'flag' , [Contract::$FLAG_DELETED, Contract::$FLAG_CANCELED]]);
|
||||
$query->andWhere(["not in" , 'flag' , [Contract::$FLAG_DELETED ]]);
|
||||
$this->contract = $query->one();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user