Mark canceled accounts as trashed
This commit is contained in:
parent
cd62d7f1a7
commit
bea3e2b05b
1 changed files with 3 additions and 0 deletions
|
|
@ -1394,6 +1394,9 @@ class AccountController extends BaseController
|
|||
if (! $account->hasMultipleAccounts()) {
|
||||
$company = $account->company;
|
||||
$refunded = $company->processRefund(Auth::user());
|
||||
|
||||
$ninjaClient = $this->accountRepo->getNinjaClient($account);
|
||||
$ninjaClient->delete();
|
||||
}
|
||||
|
||||
Document::scope()->each(function ($item, $key) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue