Skip to content

Commit

Permalink
Update src/Service/InvoicingRateReportService.php
Browse files Browse the repository at this point in the history
Co-authored-by: Troels Ugilt Jensen <[email protected]>
  • Loading branch information
jeppekroghitk and tuj authored Jan 6, 2025
1 parent d926a96 commit 7d854a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/InvoicingRateReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7d854a5

Please sign in to comment.