1
0
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:
Patrick Samson 2014-11-03 19:31:28 -05:00
parent b11a169de1
commit 92d1d6562d

View File

@ -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);
}
}
}