changes
This commit is contained in:
@@ -343,6 +343,7 @@ class FusionClockAPI(http.Controller):
|
||||
'attendance_id': attendance.id,
|
||||
'check_in': fields.Datetime.to_string(attendance.check_in),
|
||||
'location_name': location.name,
|
||||
'location_address': location.address or '',
|
||||
'message': f'Clocked in at {location.name}',
|
||||
'streak': employee.x_fclk_ontime_streak,
|
||||
}
|
||||
@@ -389,6 +390,7 @@ class FusionClockAPI(http.Controller):
|
||||
'break_minutes': attendance.x_fclk_break_minutes,
|
||||
'overtime_hours': round(attendance.x_fclk_overtime_hours or 0, 2),
|
||||
'location_name': location.name,
|
||||
'location_address': location.address or '',
|
||||
'message': f'Clocked out from {location.name}',
|
||||
}
|
||||
|
||||
@@ -527,6 +529,7 @@ class FusionClockAPI(http.Controller):
|
||||
'attendance_id': att.id,
|
||||
'check_in': fields.Datetime.to_string(att.check_in),
|
||||
'location_name': att.x_fclk_location_id.name or '',
|
||||
'location_address': att.x_fclk_location_id.address or '',
|
||||
'location_id': att.x_fclk_location_id.id or False,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user