mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #6266 from turbo124/v5-develop
fixes for trial_started
This commit is contained in:
commit
539c8646e9
@ -581,4 +581,9 @@ class CompanyController extends BaseController
|
||||
return $this->itemResponse($company->fresh());
|
||||
|
||||
}
|
||||
|
||||
// public function default(DefaultCompanyRequest $request, Company $company)
|
||||
// {
|
||||
|
||||
// }
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ 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 = Carbon::parse($this->trial_started)->addSeconds($this->trial_duration);
|
||||
|
||||
if($trial_expires->greaterThan(now())){
|
||||
$trial_active = true;
|
||||
|
Loading…
Reference in New Issue
Block a user