From 7d854a5146fbe663c9f00c7677144e4c35840f07 Mon Sep 17 00:00:00 2001 From: Jeppe Julius Krogh <106669866+jeppekroghitk@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:51:24 +0100 Subject: [PATCH] Update src/Service/InvoicingRateReportService.php Co-authored-by: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> --- src/Service/InvoicingRateReportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/InvoicingRateReportService.php b/src/Service/InvoicingRateReportService.php index 6186e6fc..400afd84 100644 --- a/src/Service/InvoicingRateReportService.php +++ b/src/Service/InvoicingRateReportService.php @@ -114,7 +114,7 @@ public function getInvoicingRateReport( foreach ($billedWorklogs as $billedWorklog) { $projectName = $billedWorklog->getProject()->getName(); $issueName = $billedWorklog->getIssue()->getName(); - $workerProjects[$projectName][$period]['loggedBilledHours'] = ($workerProjects[$projectName][$period]['loggedBilledHours'] ?? 0) + ($billedWorklog->getTimeSpentSeconds() / 60 / 60); + $workerProjects[$projectName][$period]['loggedBilledHours'] = ($workerProjects[$projectName][$period]['loggedBilledHours'] ?? 0) + ($billedWorklog->getTimeSpentSeconds() * self::SECONDS_TO_HOURS); if ($includeIssues) { $workerProjects[$projectName][$issueName][$period]['loggedBilledHours'] = ($workerProjects[$projectName][$issueName][$period]['loggedBilledHours'] ?? 0) + ($billedWorklog->getTimeSpentSeconds() / 60 / 60); $workerProjects[$projectName][$issueName]['linkToissue'][$billedWorklog->getIssue()->getProjectTrackerId()] = $billedWorklog->getIssue()->getLinkToIssue();