1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for referral count

This commit is contained in:
Hillel Coren 2017-12-11 16:08:31 +02:00
parent c7cb72546f
commit 6b12cfb63a

View File

@ -160,6 +160,11 @@ class Company extends Eloquent
public function getPlanDetails($includeInactive = false, $includeTrial = true)
{
$account = $this->accounts()->first();
if (! $account) {
return false;
}
return $account->getPlanDetails($includeInactive, $includeTrial);
}