|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$newCredit = $userProducer->credit ; |
|
|
$newCredit = $userProducer->credit ; |
|
|
if($oldCredit > $creditLimitReminder && $newCredit <= $creditLimitReminder) { |
|
|
|
|
|
|
|
|
if(!is_null($creditLimitReminder) && |
|
|
|
|
|
$oldCredit > $creditLimitReminder && $newCredit <= $creditLimitReminder) { |
|
|
$user = User::findOne($this->id_user) ; |
|
|
$user = User::findOne($this->id_user) ; |
|
|
$producer = Producer::findOne($this->id_producer) ; |
|
|
$producer = Producer::findOne($this->id_producer) ; |
|
|
Yii::$app->mailer->compose( |
|
|
Yii::$app->mailer->compose( |