mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 11:17:34 -04:00 
			
		
		
		
	Merge pull request #6558 from turbo124/v5-develop
fixes for failed payments
This commit is contained in:
		
						commit
						1f73b88dc5
					
				| @ -113,6 +113,7 @@ class BaseController extends Controller | ||||
|           'company.payment_terms', | ||||
|           'company.designs.company', | ||||
|           'company.expense_categories', | ||||
|           'company.subscriptions', | ||||
|         ]; | ||||
| 
 | ||||
|     public function __construct() | ||||
|  | ||||
| @ -389,8 +389,7 @@ class BaseDriver extends AbstractPaymentDriver | ||||
| 
 | ||||
|             $invoices->each(function ($invoice) { | ||||
| 
 | ||||
|                 if (!$invitation->contact->trashed() && $invitation->contact->send_email && $invitation->contact->email)  | ||||
|                     $invoice->service()->deletePdf(); | ||||
|                 $invoice->service()->deletePdf(); | ||||
|                  | ||||
|             }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user