New controlling plugin: Amount of working hours #112
-
Hi, Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
I don't know what this means. Are you talking about the old MR plugin? This is not the old plugin 😁 the new one works different: all booked time is working time. If you want to track attendance and project times in parallel, you need to use two distinct user accounts for that. |
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.
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