only show Weekly Billable Amount of current organization on dashboard, fixes #977

This commit is contained in:
Gregor Vostrak
2025-12-02 13:30:08 +01:00
parent 280032ee02
commit 7a51fca2f9
+2 -1
View File
@@ -266,7 +266,8 @@ class DashboardService
) as aggregate'))
->where('billable', '=', true)
->whereNotNull('billable_rate')
->where('user_id', '=', $user->id);
->where('user_id', '=', $user->getKey())
->where('organization_id', '=', $organization->getKey());
$query = $this->constrainDateByPossibleDates($query, $possibleDays, $timezone);
/** @var Collection<int, object{aggregate: int}> $resultDb */