mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Mark canceled accounts as trashed
This commit is contained in:
		
							parent
							
								
									cd62d7f1a7
								
							
						
					
					
						commit
						bea3e2b05b
					
				@ -1394,6 +1394,9 @@ class AccountController extends BaseController
 | 
				
			|||||||
        if (! $account->hasMultipleAccounts()) {
 | 
					        if (! $account->hasMultipleAccounts()) {
 | 
				
			||||||
            $company = $account->company;
 | 
					            $company = $account->company;
 | 
				
			||||||
            $refunded = $company->processRefund(Auth::user());
 | 
					            $refunded = $company->processRefund(Auth::user());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            $ninjaClient = $this->accountRepo->getNinjaClient($account);
 | 
				
			||||||
 | 
					            $ninjaClient->delete();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Document::scope()->each(function ($item, $key) {
 | 
					        Document::scope()->each(function ($item, $key) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user