Fixed SQL query on dashboard
It did not work properly before on Postgres
This commit is contained in:
parent
b11a169de1
commit
92d1d6562d
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue