Skip to main content

QR Code

Scanning ยท Verification ยท Attendance

QR Code Scanning

The QR code scanning system provides fast, secure, and accurate attendance tracking and verification capabilities. QR code technology enables efficient check-in/check-out processes, location verification, and secure access control throughout the TALENTS System.

Fast scanning

Instant QR code recognition.

Secure verification

Tamper-proof authentication.

Mobile friendly

Works on all devices.

Key Features

Advanced scanning technology.

โšก

Quick Check-in

Fast attendance recording.

๐Ÿ“

Location Verification

Confirm work site presence.

๐Ÿ”’

Security Features

Tamper-resistant verification.

๐Ÿ“ฑ

Offline Capability

Function without internet.

๐Ÿ”—

Integration

Seamless system integration.

Best Practices

Effective scanning guidelines.

๐Ÿ“ท

Clear Scanning

Ensure proper lighting and focus.

๐Ÿ”‹

Device Maintenance

Keep devices charged and updated.

๐Ÿ“

Location Awareness

Verify correct scanning locations.

๐Ÿ”„

Regular Updates

Keep QR codes current and valid.

QR Code Scanning Process

Step-by-step attendance recording.

How QR Code Scanning Works

1

QR Code Generation

User generates a QR code containing their UUID, timestamp, and scan type (checkin/checkout).

2

QR Code Scanning

Authorized scanner scans the QR code and selects the specific job and shift.

3

Validation Process

System validates user existence, job application status, shift availability, and timing constraints.

4

Attendance Recording

System creates or updates attendance record with appropriate status and timestamps.

Attendance Creation Conditions

Required validations and checks.

๐Ÿ‘ค

User Validation

  • โ€ข User must exist in the system
  • โ€ข User UUID must be valid and match
  • โ€ข User account must be active
๐Ÿ’ผ

Application Status

  • โ€ข Must have accepted application for the job
  • โ€ข Application status must be 'accepted'
  • โ€ข Job must match the specified job_id
๐Ÿ“…

Shift Validation

  • โ€ข Shift must exist and belong to the job
  • โ€ข Check-in time must be within shift period
  • โ€ข Shift must be active and available
โฐ

Time Constraints

  • โ€ข Check-in must be within shift hours
  • โ€ข Late arrival detection and tracking
  • โ€ข Prevent duplicate check-ins for same shift

API Endpoints

QR code scanning API routes.

MethodEndpointDescription
GET/api/qr/generateGenerate QR code for authenticated user
POST/api/qr/scanScan QR code and record attendance
GET/api/qr/scannerDisplay QR scanner interface

Attendance Data Structure

Recorded attendance information.

Core Attendance Fields

FieldTypeDescription
user_idForeign IDReference to the user/talent
shift_idForeign IDReference to the shift
job_idForeign IDReference to the job
project_idForeign IDReference to the project
check_in_timeDateTimeWhen the user checked in
check_out_timeDateTimeWhen the user checked out
total_hoursDecimalTotal hours worked (calculated)
statusStringpresent, late, absent, etc.
scanner_idForeign IDWho scanned the check-in
checkout_scanner_idForeign IDWho scanned the check-out

Attendance Table Interface

Visual representation of attendance data.

The attendance table provides a comprehensive view of all recorded attendance entries, with filtering, sorting, and export capabilities.

Attendance Table Interface
๐Ÿ”

Advanced Filtering

Filter by date range, user, job, project, and status.

๐Ÿ“Š

Real-time Data

Live attendance status and duration tracking.

Error Handling & Validation

Common scenarios and responses.

โŒ

User Not Found

Returns 404 when the scanned UUID doesn't match any user in the system.

๐Ÿšซ

No Accepted Application

Returns 404 when user doesn't have an accepted application for the specified job.

โฐ

Outside Shift Hours

Returns success but with warning when scanning outside shift time period.

๐Ÿ”„

Duplicate Check-in

Prevents duplicate check-ins for the same user and shift on the same day.

Integration with Other Systems

Connected verification workflows.

๐Ÿ”—

Connected Workflows

Attendances โ€ข Shifts โ€ข Projects

๐Ÿ‘ฅ

User Integration

Applications and Jobs verification