Merge branch 'next' into develop

This commit is contained in:
Daniel Appelgren
2021-11-26 10:32:38 +01:00

View File

@@ -119,7 +119,9 @@ export class FranvaroReportFormComponent {
return new Date() > startDate;
}
private _isBeforeLastPossibleReportDay(endDate: Date): boolean {
const lastPossibleReportDay = addDays(endDate, 5); // Reporting is allowed at latest 5 days past avrop end date.
// Reporting is allowed at latest 5 days past avrop end date.
// Because it's workdays and not calendar days we temporarily set this to much more. This date should be fetched from API in the future
const lastPossibleReportDay = addDays(endDate, 15);
return lastPossibleReportDay > new Date();
}