mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 14:14:29 -04:00
Mark canceled accounts as trashed
This commit is contained in:
parent
a1793753ea
commit
e6798c58d4
@ -1403,6 +1403,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…
x
Reference in New Issue
Block a user