Skip to content

Commit

Permalink
fix break calculation issue (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatjaGlassConsulting committed Jan 18, 2025
1 parent 79aa2e5 commit c36e47f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.4

- fix: Break issue calculations had not been correct, when time entries had been in misorder, e.g. entered later times before earlier times, this is now fixed.

## 2.1.3

- fix: Return value had not been provided - using working hours had previously thrown an error
Expand Down
1 change: 1 addition & 0 deletions Controller/WeekReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ private function getTimesheets(?User $selectedUser, DateTime $start, DateTime $e
$dateRange->setEnd($end);
$timesheetQuery->setDateRange($dateRange);
$timesheetQuery->setOrderBy('date');
$timesheetQuery->setOrderBy('begin');
$timesheetQuery->setOrder(BaseQuery::ORDER_ASC);

$timesheets = $this->timesheetRepository->getTimesheetsForQuery($timesheetQuery);
Expand Down

0 comments on commit c36e47f

Please sign in to comment.