mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:24:36 -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 {
|
||||
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…
x
Reference in New Issue
Block a user