Igalia / phpreport

Web tool for project time tracking and project management.
http://igalia.github.io/phpreport/
GNU General Public License v3.0
30 stars 12 forks source link

Add dates to holiday summary report header #805

Closed dmtrek14 closed 6 months ago

dmtrek14 commented 6 months ago

This adds some additional information to the table header in the holiday summary report - specifically, it adds the first day of the week. This change is made so that users won't have to look up when an ISO week starts and can then have a better idea of when leaves are happening.

Once again, some of the changes show here are from auto-formatting - sorry!

Main change in HolidayService.php is in lines 420-426 where the new array is created that has the week ('2024W01') and the weekStartDate ('Jan 1').

Main changes in holidaySummary.js are at lines 36 and 105 where the weeksStartDate is added and filled.

Then in the holidaySummary.php, the change is at line 69 where the additional info (the week start date) is added to the table header.