diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/franvaro-report-form/franvaro-report-form.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/franvaro-report-form/franvaro-report-form.component.ts index 17a06a7..766999f 100644 --- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/franvaro-report-form/franvaro-report-form.component.ts +++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/franvaro-report-form/franvaro-report-form.component.ts @@ -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(); }