Subversion Repositories SmartDukaan

Rev

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

Rev 27426 Rev 27427
Line 123... Line 123...
123
		double dist = distance(lat1, lng1, lat2, lng2, "m");
123
		double dist = distance(lat1, lng1, lat2, lng2, "m");
124
		EmployeeAttendanceModel em = new EmployeeAttendanceModel();
124
		EmployeeAttendanceModel em = new EmployeeAttendanceModel();
125
		em.setDistance(dist);
125
		em.setDistance(dist);
126
		em.setLatitude(lat2);
126
		em.setLatitude(lat2);
127
		em.setLongitude(lng2);
127
		em.setLongitude(lng2);
-
 
128
		LOGGER.info("hyperTrackKey" + hyperTrackKey);
-
 
129
		LOGGER.info("employeeAttendance" + employeeAttendance);
128
		if (employeeAttendance.getCreateTimestamp().toLocalDate().equals(LocalDate.now())) {
130
		if (employeeAttendance.getCreateTimestamp().toLocalDate().equals(LocalDate.now())) {
129
			if (employeeAttendance.getPunch().equals("punchIn")) {
131
			if (employeeAttendance.getPunch().equals("punchIn")) {
130
				em.setPunchIn(true);
132
				em.setPunchIn(true);
131
			} else {
133
			} else {
132
				em.setPunchIn(false);
134
				em.setPunchIn(false);