mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #188 from Lykegenes/master
Fixed SQL query on dashboard
This commit is contained in:
commit
925f6384e4
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ class ConfideSetupUsersTable extends Migration {
|
||||
$t->string('last_name')->nullable();
|
||||
$t->string('email')->nullable();
|
||||
$t->string('phone')->nullable();
|
||||
$t->timestamp('last_login');
|
||||
$t->timestamp('last_login')->nullable();
|
||||
|
||||
$t->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
||||
$t->foreign('user_id')->references('id')->on('users')->onDelete('cascade');;
|
||||
|
Loading…
x
Reference in New Issue
Block a user