Don't send reminders after downgrading
This commit is contained in:
parent
a4d4b2b96c
commit
aaab3b1fcf
1 changed files with 4 additions and 0 deletions
|
|
@ -194,6 +194,10 @@ class AccountController extends BaseController
|
|||
} else {
|
||||
if ($plan == PLAN_FREE) {
|
||||
$company->discount = 0;
|
||||
|
||||
$ninjaClient = $this->accountRepo->getNinjaClient($account);
|
||||
$ninjaClient->send_reminders = false;
|
||||
$ninjaClient->save();
|
||||
} else {
|
||||
$company->plan_term = $term;
|
||||
$company->plan_price = $newPlan['price'];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue