mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 16:50:58 -04:00
Fix for #219 - multiple currencies on dashboard
This commit is contained in:
parent
39c6656e49
commit
1a7a4499af
@ -31,7 +31,7 @@ class DashboardController extends \BaseController
|
||||
->where('accounts.id', '=', Auth::user()->account_id)
|
||||
->where('clients.is_deleted', '=', false)
|
||||
->groupBy('accounts.id')
|
||||
->groupBy('clients.currency_id')
|
||||
->groupBy(DB::raw('CASE WHEN clients.currency_id IS NULL THEN CASE WHEN accounts.currency_id IS NULL THEN 1 ELSE accounts.currency_id END ELSE clients.currency_id END'))
|
||||
->get();
|
||||
|
||||
$activities = Activity::where('activities.account_id', '=', Auth::user()->account_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user