mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 16:14:28 -04:00
Fix for referral count
This commit is contained in:
parent
d0adbb6d06
commit
41371022b8
@ -155,6 +155,11 @@ class Company extends Eloquent
|
|||||||
public function getPlanDetails($includeInactive = false, $includeTrial = true)
|
public function getPlanDetails($includeInactive = false, $includeTrial = true)
|
||||||
{
|
{
|
||||||
$account = $this->accounts()->first();
|
$account = $this->accounts()->first();
|
||||||
|
|
||||||
|
if (! $account) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return $account->getPlanDetails($includeInactive, $includeTrial);
|
return $account->getPlanDetails($includeInactive, $includeTrial);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user