From f70bf3341b76d81edcaca215172df89177f64aa0 Mon Sep 17 00:00:00 2001 From: Kheireddine Mehdi Date: Thu, 12 Dec 2024 14:28:54 +0100 Subject: [PATCH] Fix attendances module --- .../java/com/axelor/apps/hr/service/DailyReportServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/axelor-open-suite/axelor-human-resource/src/main/java/com/axelor/apps/hr/service/DailyReportServiceImpl.java b/modules/axelor-open-suite/axelor-human-resource/src/main/java/com/axelor/apps/hr/service/DailyReportServiceImpl.java index a5f7725..90f85a3 100644 --- a/modules/axelor-open-suite/axelor-human-resource/src/main/java/com/axelor/apps/hr/service/DailyReportServiceImpl.java +++ b/modules/axelor-open-suite/axelor-human-resource/src/main/java/com/axelor/apps/hr/service/DailyReportServiceImpl.java @@ -319,7 +319,7 @@ public class DailyReportServiceImpl implements DailyReportService { if (dailyReport.getAbsence() == null) { Absence absence = Beans.get(AbsenceRepository.class) .all() - .filter("self.employee = :employee and self.startDate <= :reportDate and self.endDate >= :reportDate and (archived = false or archived is null)") + .filter("self.employee = :employee and self.startDate <= :reportDate and self.endDate >= :reportDate and (self.archived = false or self.archived is null)") .bind("employee", employee) .bind("reportDate",reportDate) // Changed from absenceStartDate and absenceEndDate to reportDate .fetchOne();