Fix Location displays QR code address

This commit is contained in:
2025-09-16 21:24:37 -04:00
parent 6603a1cd06
commit 22ccebd84a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3734,7 +3734,7 @@ def qr_checkin(qr_url):
'message': f'Check-in successful! {checkin_sequence_text} for today.', 'message': f'Check-in successful! {checkin_sequence_text} for today.',
'data': { 'data': {
'employee_id': attendance.employee_id, 'employee_id': attendance.employee_id,
'location': attendance.location_name, 'location': qr_code.location_address,
'location_event': qr_code.location_event, 'location_event': qr_code.location_event,
'event': qr_code.location_event, # Add both for compatibility 'event': qr_code.location_event, # Add both for compatibility
'check_in_time': attendance.check_in_time.strftime('%I:%M %p'), # 12-hour format 'check_in_time': attendance.check_in_time.strftime('%I:%M %p'), # 12-hour format
+2 -2
View File
@@ -818,12 +818,12 @@
<i class="fas fa-sign-in-alt"></i> <i class="fas fa-sign-in-alt"></i>
<span class="english-text">Check In</span> <span class="english-text">Check In</span>
<span class="language-separator">/</span> <span class="language-separator">/</span>
<span class="spanish-text">Registrar Entrada</span> <span class="spanish-text">Entrada</span>
{% else %} {% else %}
<i class="fas fa-sign-out-alt"></i> <i class="fas fa-sign-out-alt"></i>
<span class="english-text">Check Out</span> <span class="english-text">Check Out</span>
<span class="language-separator">/</span> <span class="language-separator">/</span>
<span class="spanish-text">Registrar Salida</span> <span class="spanish-text">Salida</span>
{% endif %} {% endif %}
</button> </button>
</form> </form>