mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 05:04:35 -04:00
fixes for trial_started
This commit is contained in:
parent
336e982f69
commit
d448ae1119
@ -581,4 +581,9 @@ class CompanyController extends BaseController
|
|||||||
return $this->itemResponse($company->fresh());
|
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) {
|
if ($trial_plan && $include_trial) {
|
||||||
$trial_started = $this->trial_started;
|
$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())){
|
if($trial_expires->greaterThan(now())){
|
||||||
$trial_active = true;
|
$trial_active = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user