Skip to content

Commit

Permalink
do not notify staffstatus records of staff without employee flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Feb 2, 2024
1 parent 1d36d50 commit 26c53fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,8 @@ protected long handlePrepareNotifications(Long departmentId) throws Exception {
}
}
}
Iterator<StaffStatusEntry> staffStatusIt = this.getStaffStatusEntryDao().findStaffStatus(CommonUtil.dateToTimestamp(today), null, departmentId, null, false, null, null)
Iterator<StaffStatusEntry> staffStatusIt = this.getStaffStatusEntryDao()
.findStaffStatus(CommonUtil.dateToTimestamp(today), null, departmentId, null, false, true, null, null)
.iterator();
while (staffStatusIt.hasNext()) {
StaffStatusEntry staffStatusEntry = staffStatusIt.next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4663,7 +4663,7 @@ public static void populateShiftDurationSummary(boolean trialBreakDown, ShiftDur
durationSummaryDetail.setStaffStatusEntryDuration(0);
if (!trialBreakDown && staff != null) {
Iterator<StaffStatusEntry> statusEntryIt = staffStatusEntryDao.findByStaffInterval(staff.getId(), CommonUtil.dateToTimestamp(summary.getStart()),
CommonUtil.dateToTimestamp(summary.getStop()), false, null, false).iterator();
CommonUtil.dateToTimestamp(summary.getStop()), false, null, null, false).iterator();
while (statusEntryIt.hasNext()) {
StaffStatusEntry statusEntry = statusEntryIt.next();
Date start = statusEntry.getStart();
Expand Down

0 comments on commit 26c53fa

Please sign in to comment.