mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed SQL query on dashboard
It did not work properly before on Postgres
This commit is contained in:
parent
b11a169de1
commit
92d1d6562d
@ -19,7 +19,7 @@ class DashboardController extends \BaseController {
|
|||||||
->groupBy('accounts.id')
|
->groupBy('accounts.id')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$select = DB::raw('SUM(clients.paid_to_date) value');
|
$select = DB::raw('SUM(clients.paid_to_date) as value');
|
||||||
|
|
||||||
$totalIncome = DB::table('accounts')
|
$totalIncome = DB::table('accounts')
|
||||||
->select($select)
|
->select($select)
|
||||||
@ -62,4 +62,4 @@ class DashboardController extends \BaseController {
|
|||||||
return View::make('dashboard', $data);
|
return View::make('dashboard', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user