fix attendance
This commit is contained in:
parent
b28afaa627
commit
10cd3cac61
|
|
@ -212,6 +212,7 @@ class AttendanceController(http.Controller):
|
|||
'zone':zone.zone if zone else "%s,%s" % (body.get('longitude'), body.get('latitude')),
|
||||
'longitude': body.get('longitude'),
|
||||
'latitude':body.get('latitude'),
|
||||
'zone_name':zone.id if zone else False,
|
||||
})
|
||||
if attendance:
|
||||
if body.get('action') == 'sign_out' and system_checkout == True:
|
||||
|
|
@ -229,6 +230,7 @@ class AttendanceController(http.Controller):
|
|||
"longitude": attendance.longitude,
|
||||
"latitude": attendance.latitude,
|
||||
"range": zone.allowed_range if zone else False,
|
||||
"zone_name":attendance.zone_name if zone_name else False,
|
||||
}
|
||||
msg = (_("Check Out successfully")) if body.get('action') == 'sign_out' else (_("Check in successfully"))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue