Fix attendances module
This commit is contained in:
@@ -319,7 +319,7 @@ public class DailyReportServiceImpl implements DailyReportService {
|
|||||||
if (dailyReport.getAbsence() == null) {
|
if (dailyReport.getAbsence() == null) {
|
||||||
Absence absence = Beans.get(AbsenceRepository.class)
|
Absence absence = Beans.get(AbsenceRepository.class)
|
||||||
.all()
|
.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("employee", employee)
|
||||||
.bind("reportDate",reportDate) // Changed from absenceStartDate and absenceEndDate to reportDate
|
.bind("reportDate",reportDate) // Changed from absenceStartDate and absenceEndDate to reportDate
|
||||||
.fetchOne();
|
.fetchOne();
|
||||||
|
|||||||
Reference in New Issue
Block a user