mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Fix to retain plan_started
This commit is contained in:
		
							parent
							
								
									fecaff5a18
								
							
						
					
					
						commit
						a63c0843cc
					
				@ -661,7 +661,7 @@ class BasePaymentDriver
 | 
			
		||||
 | 
			
		||||
                if(
 | 
			
		||||
                    $company->plan != $plan
 | 
			
		||||
                    || DateTime::createFromFormat('Y-m-d', $account->company->plan_expires) >= date_create('-7 days')
 | 
			
		||||
                    || DateTime::createFromFormat('Y-m-d', $account->company->plan_expires) <= date_create('-7 days')
 | 
			
		||||
                ) {
 | 
			
		||||
                    // Either this is a different plan, or the subscription expired more than a week ago
 | 
			
		||||
                    // Reset any grandfathering
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user