Update franvaro-report-form.component.ts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user