mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:17:34 -05:00 
			
		
		
		
	Merge fix for reminders
This commit is contained in:
		
							parent
							
								
									a3512746cc
								
							
						
					
					
						commit
						402171bcfe
					
				@ -1216,6 +1216,10 @@ class InvoiceRepository extends BaseRepository
 | 
			
		||||
        $frequencyId = $account->account_email_settings->frequency_id_reminder4;
 | 
			
		||||
        $frequency = Utils::getFromCache($frequencyId, 'frequencies');
 | 
			
		||||
 | 
			
		||||
        if (! $frequencyId || ! $account->enable_reminder4) {
 | 
			
		||||
            return [];
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $lastSentDate = date_create();
 | 
			
		||||
        $lastSentDate->sub(date_interval_create_from_date_string($frequency->date_interval));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user