mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 01:17:30 -05:00 
			
		
		
		
	Account cleanup
This commit is contained in:
		
							parent
							
								
									73e7aadaad
								
							
						
					
					
						commit
						38a648866c
					
				@ -243,15 +243,11 @@ class Account extends BaseModel
 | 
			
		||||
        if ($trial_plan && $include_trial) {
 | 
			
		||||
            $trial_started = $this->trial_started;
 | 
			
		||||
            $trial_expires = $this->trial_started->addSeconds($this->trial_duration);
 | 
			
		||||
            // $trial_expires->modify('+2 weeks');
 | 
			
		||||
 | 
			
		||||
            if($trial_expires->greaterThan(now())){
 | 
			
		||||
                $trial_active = true;
 | 
			
		||||
             }
 | 
			
		||||
 | 
			
		||||
            // if ($trial_expires >= date_create()) {
 | 
			
		||||
            //     $trial_active = true;
 | 
			
		||||
            // }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $plan_active = false;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user