diff --git a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts index 4fc43b0..43161dc 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts @@ -205,13 +205,12 @@ export class GetOverviewService { const record = by_employee.get(employee.id); if (!record) continue; const timesheets = employee.timesheet; - const has_data = timesheets.some(timesheet => timesheet.shift.length > 0 || timesheet.expense.length > 0); const cutoff_date = new Date(); cutoff_date.setDate(cutoff_date.getDate() + 14); const is_active = employee.last_work_day ? employee.last_work_day.getTime() >= cutoff_date.getTime() : true; - record.is_approved = has_data && timesheets.every(timesheet => timesheet.is_approved === true); + record.is_approved = timesheets.every(timesheet => timesheet.is_approved === true); record.is_active = is_active; }