mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
only show Weekly Billable Amount of current organization on dashboard, fixes #977
This commit is contained in:
@@ -266,7 +266,8 @@ class DashboardService
|
|||||||
) as aggregate'))
|
) as aggregate'))
|
||||||
->where('billable', '=', true)
|
->where('billable', '=', true)
|
||||||
->whereNotNull('billable_rate')
|
->whereNotNull('billable_rate')
|
||||||
->where('user_id', '=', $user->id);
|
->where('user_id', '=', $user->getKey())
|
||||||
|
->where('organization_id', '=', $organization->getKey());
|
||||||
|
|
||||||
$query = $this->constrainDateByPossibleDates($query, $possibleDays, $timezone);
|
$query = $this->constrainDateByPossibleDates($query, $possibleDays, $timezone);
|
||||||
/** @var Collection<int, object{aggregate: int}> $resultDb */
|
/** @var Collection<int, object{aggregate: int}> $resultDb */
|
||||||
|
|||||||
Reference in New Issue
Block a user