diff --git a/grails-app/views/organisation/_organisationReportHeader.gsp b/grails-app/views/organisation/_organisationReportHeader.gsp index d2c68adbb..3554247aa 100644 --- a/grails-app/views/organisation/_organisationReportHeader.gsp +++ b/grails-app/views/organisation/_organisationReportHeader.gsp @@ -16,11 +16,25 @@
Reporting period end
- -
+ <%-- + The reason this check is necessary is the reporting end date is selected by the user using a + date picker. The date picker sets the time to 00:00:00. This means that the date selected for the + final report ends up being midnight at the start of the final day. All generated reports will + use midnight at the start of the day after the end date. This means that when we display the + report end date for generated reports we should use the day before the actual end date, + except for the final report. + Note that for organisationReports, the selected end date is stored as the "periodEnd" for all + generated reporting periods which is why using the first one is sufficient. + --%> + +
+
+ +
+
-
Report status