mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:34:30 -04:00
Don't send reminders after downgrading
This commit is contained in:
parent
a4d4b2b96c
commit
aaab3b1fcf
@ -194,6 +194,10 @@ class AccountController extends BaseController
|
|||||||
} else {
|
} else {
|
||||||
if ($plan == PLAN_FREE) {
|
if ($plan == PLAN_FREE) {
|
||||||
$company->discount = 0;
|
$company->discount = 0;
|
||||||
|
|
||||||
|
$ninjaClient = $this->accountRepo->getNinjaClient($account);
|
||||||
|
$ninjaClient->send_reminders = false;
|
||||||
|
$ninjaClient->save();
|
||||||
} else {
|
} else {
|
||||||
$company->plan_term = $term;
|
$company->plan_term = $term;
|
||||||
$company->plan_price = $newPlan['price'];
|
$company->plan_price = $newPlan['price'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user