mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 01:54:36 -04:00
Only do annual income calculations if we're going to show the BlueVinePromo.
This commit is contained in:
parent
632bff872e
commit
3d84e408bb
@ -42,6 +42,7 @@ class DashboardController extends BaseController
|
|||||||
$payments = $dashboardRepo->payments($accountId, $userId, $viewAll);
|
$payments = $dashboardRepo->payments($accountId, $userId, $viewAll);
|
||||||
$expenses = $dashboardRepo->expenses($accountId, $userId, $viewAll);
|
$expenses = $dashboardRepo->expenses($accountId, $userId, $viewAll);
|
||||||
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
|
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
|
||||||
|
$showBlueVinePromo = !$account->bluevine_status && env('BLUEVINE_PARTNER_UNIQUE_ID');
|
||||||
|
|
||||||
// check if the account has quotes
|
// check if the account has quotes
|
||||||
$hasQuotes = false;
|
$hasQuotes = false;
|
||||||
@ -91,9 +92,10 @@ class DashboardController extends BaseController
|
|||||||
'currencies' => $currencies,
|
'currencies' => $currencies,
|
||||||
'expenses' => $expenses,
|
'expenses' => $expenses,
|
||||||
'tasks' => $tasks,
|
'tasks' => $tasks,
|
||||||
|
'showBlueVinePromo' => $showBlueVinePromo,
|
||||||
];
|
];
|
||||||
|
|
||||||
if(true){
|
if($showBlueVinePromo){
|
||||||
$usdLast12Months = 0;
|
$usdLast12Months = 0;
|
||||||
|
|
||||||
$paidLast12Months = $dashboardRepo->paidLast12Months( $account, $userId, $viewAll );
|
$paidLast12Months = $dashboardRepo->paidLast12Months( $account, $userId, $viewAll );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user