mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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')
|
||||
->first();
|
||||
|
||||
$select = DB::raw('SUM(clients.paid_to_date) value');
|
||||
$select = DB::raw('SUM(clients.paid_to_date) as value');
|
||||
|
||||
$totalIncome = DB::table('accounts')
|
||||
->select($select)
|
||||
@ -62,4 +62,4 @@ class DashboardController extends \BaseController {
|
||||
return View::make('dashboard', $data);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user