New controlling plugin: Amount of working hours #112
-
Hi, Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 18 replies
-
I don't know what this means. Are you talking about the old MR plugin?
EDIT: There is now a setting to use one specific project globally for working time. |
Beta Was this translation helpful? Give feedback.
-
That was the same way in the old MR plugin. |
Beta Was this translation helpful? Give feedback.
-
Special thx to idemus :) I have changed the code in the Module like him. But i filtered by activity not by project. 71 if ($stats === null) { 143 $qb I have tested the chnges. Working like a charme :) Best Regards, WBrugger |
Beta Was this translation helpful? Give feedback.
-
thanks for the input to @idemus and @Wbrugger unfortunately, neither solution works for me. my wish would actually be that there is the possibility to record the working time as a project or activity. |
Beta Was this translation helpful? Give feedback.
-
ps: |
Beta Was this translation helpful? Give feedback.
-
and another small addition (but that's just optics): example: |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for this feature to be integrated in Kimai. |
Beta Was this translation helpful? Give feedback.
-
The next release will have support for that setting (see also #186 and #175). My question to all of you who tried to add it manually: what points did you encounter that were problematic? |
Beta Was this translation helpful? Give feedback.
-
We have the opposite scenario here, we have projects/activities to track future allocations. So we need projects/activities that wont be considered in the working time calculation. Is it possible to:
thanks in advance and best regards |
Beta Was this translation helpful? Give feedback.
Hi Kevin,
here my changes I've done in WorkingTimeService.php:
adding third parameter $project in function private function getYearStatistics(\DateTimeInterface $year, User $user, int $project ): array
adding addwhere in the select:
->andWhere($qb->expr()->eq('t.project', ':project'))
->setParameter('project', $project)
calling the function in line 71 with projectid (hard coded because it's only for my own use).
$stats = $this->getYearStatistics($yearDate, $user, 4);
Now I get only those timesheets created under my project which is considered for working time (and not times booked on customer projects for billable reasons).
Best regards
Klaus