mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
14 day trial
This commit is contained in:
parent
c1a9948736
commit
02474fdff3
@ -271,9 +271,12 @@ class Account extends BaseModel
|
||||
|
||||
$trial_active = false;
|
||||
|
||||
//14 day trial
|
||||
$duration = 60*60*24*14;
|
||||
|
||||
if ($trial_plan && $include_trial) {
|
||||
$trial_started = $this->trial_started;
|
||||
$trial_expires = Carbon::parse($this->trial_started)->addSeconds($this->trial_duration);
|
||||
$trial_expires = Carbon::parse($this->trial_started)->addSeconds($duration);
|
||||
|
||||
if($trial_expires->greaterThan(now())){
|
||||
$trial_active = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user