Subversion Repositories SmartDukaan

Rev

Rev 28818 | Rev 28820 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28818 Rev 28819
Line 1133... Line 1133...
1133
					LOGGER.info("employeeAttendanceOptional.get().getCreateTimestamp() {}", employeeAttendanceOptional.get().getCreateTimestamp());
1133
					LOGGER.info("employeeAttendanceOptional.get().getCreateTimestamp() {}", employeeAttendanceOptional.get().getCreateTimestamp());
1134
				}
1134
				}
1135
			}
1135
			}
1136
			if (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null
1136
			if (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null
1137
					|| employeeAttendanceOptional.get().getCreateTimestamp().isAfter(moriningTime)) {
1137
					|| employeeAttendanceOptional.get().getCreateTimestamp().isAfter(moriningTime)) {
-
 
1138
				LOGGER.info("Will Send Email to {}", authUser.getFullName());
1138
				String body = String.format(
1139
				String body = String.format(
1139
						"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
1140
						"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
1140
						authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? "" 
1141
						authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? "" 
1141
								: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
1142
								: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
1142
				/*
1143
				/*