Biometric Integration

๐Ÿ•’ BIOMETRIC INTEGRATION FOR ERPNext

๐Ÿ‘ค Sync attendance. ๐Ÿ”„ Automate logs. ๐Ÿ“Š Keep employee check-ins accurate.

1. Overview

The Biometric Integration for ERPNext allows you to automatically sync attendance logs from your biometric device into ERPNext. No more manual CSV uploads, no spreadsheet cleaning, and no missed punch-ins/out. All check-ins flow directly into the ERPNext Attendance doctype or Check-in doctype based on configuration.

It works with biometric machines that support API-based log retrieval, enabling clean and reliable syncing for HR operations, payroll, and compliance workflows.

2. What Problems Does It Solve?

  • โš ๏ธ Manual attendance uploads every day โ€” โœ… Automated log syncing.
  • โš ๏ธ Incorrect or missing employee punches โ€” โœ… Real-time or scheduled retrieval ensures nothing is missed.
  • โš ๏ธ Inconsistent behavior between devices โ€” โœ… Unified API wrapper ensures consistent processing logic.
  • โš ๏ธ Time wasted consolidating logs from multiple machines โ€” โœ… Multi-device support from one screen.
  • โš ๏ธ No audit trail of sync operations โ€” โœ… Biometric Sync Log with detailed entries.
  • โš ๏ธ Human errors in attendance marking โ€” โœ… Automated creation of check-ins/attendance with validations.

3. Key Benefits

  • ๐ŸŒŸ Full automation
    ๐Ÿ’ฌ Attendance logs move from biometric device โ†’ ERPNext without manual steps.
  • ๐ŸŒŸ Reliable syncing engine
    ๐Ÿ’ฌ Scheduler-based background jobs ensure regular updates without user action.
  • ๐ŸŒŸ Employee mapping & validation
    ๐Ÿ’ฌ Device user IDs are mapped to ERPNext Employee records for accurate attendance.
  • ๐ŸŒŸ Comprehensive sync history
    ๐Ÿ’ฌ Every sync run is logged including counts, timestamps, errors, and device responses.
  • ๐ŸŒŸ Supports manual & automatic sync
    ๐Ÿ’ฌ HR can trigger a sync anytime or rely fully on scheduled background jobs.

4. Core Features

  • โœ” Biometric Sync Settings
    Central settings page to configure device URL, username/password, sync interval, and employee mapping behavior.
  • โœ” Automatic scheduled sync
    A scheduler job runs hourly/daily (configurable) and pulls new attendance logs from the biometric device API.
  • โœ” Manual โ€œSync Nowโ€ action for HR
    HR users can trigger a manual sync from Biometric Sync Settings for real-time updates.
  • โœ” Employee mapping engine
    Device user IDs are matched to ERPNext employees using mapping rules, with fallback error handling for unmapped IDs.
  • โœ” Attendance or Check-in creation
    Supports both ERPNext Attendance doctype creation and Check-in entries depending on your HR workflow.
  • โœ” Biometric Sync Log
    Every sync run logs request/response details, timestamps, employee count, and success/failure info for auditing.

5. How It Works

  1. ๐Ÿ”— Connect your biometric device
    Enter device base URL, username, password, and test connection from Biometric Sync Settings.
  2. ๐Ÿ”„ Scheduler or HR triggers sync
    The app calls the device API using secure authentication and fetches all recent logs.
  3. ๐Ÿ‘ฅ Map device user IDs to employees
    The system matches device IDs to ERPNext Employee records and prepares validated check-ins/attendance.
  4. ๐Ÿงฎ Create check-ins or attendance automatically
    Each log becomes an ERPNext Check-in or Attendance entry with correct time and employee reference.
  5. ๐Ÿ“Š Sync Log records everything
    A Biometric Sync Log entry is created with status, totals, duration, errors, and device response.

6. Common Use Cases

  • ๐Ÿ‘ฅ Daily employee attendance automation
  • ๐Ÿญ Factories & warehouses needing accurate time logs
  • ๐Ÿงพ HR teams preparing payroll based on attendance
  • ๐Ÿข Multi-location companies with multiple biometric devices
  • ๐Ÿ”„ Real-time shift timing or overtime monitoring

7. Who Is It For?

  • ๐Ÿ‘จโ€๐Ÿ’ผ HR Managers
  • ๐Ÿ“Š Payroll Teams
  • ๐Ÿญ Operations & Factory Supervisors
  • ๐Ÿง‘โ€๐Ÿ’ป ERPNext Administrators
  • ๐Ÿข Multi-location Businesses

8. Setup & Onboarding

  1. ๐Ÿ”ง Open Biometric Sync Settings.
  2. ๐Ÿ” Enter device URL, username, password.
  3. ๐Ÿงช Test the connection to verify device API access.
  4. ๐Ÿ‘ฅ Ensure employees have correct biometric user IDs assigned.
  5. โฐ Configure scheduler interval for automatic syncing.
  6. ๐Ÿ”„ Perform a test sync using the โ€œSync Nowโ€ button.
  7. ๐Ÿ“Š Review created Check-ins/Attendance and the Sync Log.

9. Technical Details (Admins Only)

๐Ÿงฉ Architecture
โ€“ API wrapper provides a consistent interface to different biometric device models.
โ€“ Scheduled background job performs incremental syncing and processes new device events.
โ€“ Sync Log doctype stores request/response details and run metadata for auditing and troubleshooting.
โ€“ Settings doctype holds device credentials, sync interval and mapping configuration.

๐Ÿ” Authentication
โ€“ Device credentials are stored securely in protected fields.
โ€“ Requests use basic or token-based auth depending on device capabilities.
โ€“ A communication wrapper handles retries, backoff and standardized error messages.

๐Ÿ“ก API Communication
โ€“ Robust handling for timeouts and unreachable devices with clear log entries.
โ€“ Response parsing normalizes different device payloads into a common event schema.
โ€“ Delta (last-seen) syncing prevents duplicate imports and keeps performance predictable.

๐Ÿ—„ Staging & Mapping
โ€“ Raw device events are persisted to a staging table before transformation.
โ€“ Mapping rules convert device user IDs to ERPNext Employee records; unmatched IDs are flagged for review.
โ€“ Staged events include device id, timestamp, event type, and raw payload for debugging.

๐Ÿงฎ Attendance Processing
โ€“ Normalizes punches into check-in/out or Attendance entries according to configured rules (rounding, shift boundaries).
โ€“ Duplicate protection prevents re-creation of identical entries on re-runs.
โ€“ Optionally link imported attendance to payroll/time-sheet workflows.

๐Ÿ” Retry & Logging
โ€“ Each sync run creates a log entry with totals, duration and any error messages.
โ€“ Failed API calls and transformation errors are visible in the Sync Log and can be retried from the UI.
โ€“ Logs are retained for audit and troubleshooting based on your retention policy.

โš™๏ธ Scalability & Performance
โ€“ Designed to handle multiple devices and high-frequency punches using background workers and pagination.
โ€“ Incremental fetch keeps per-run work small and predictable.

10. Device & WebApp Pre-Configuration (Mandatory Before ERPNext Setup)

Before ERPNext can sync attendance data, your biometric device and the eSSL web application (eBioServer or eTimeTrackLite) must be configured correctly. This is a mandatory step for successful communication between ERPNext and the device.

๐Ÿท๏ธ Create Location in WebApp

In eBioServer, go to Locations and create a location record. This location must match the location you select in ERPNextโ€™s Biometric Sync Settings.

eBioServer - Locations List
Location list in eBioServer โ€” create a location that matches ERPNext.

๐Ÿ”ง Add Device Entry in WebApp

Under Device List, create a new device with:
โ€“ Device Name
โ€“ Serial Number
โ€“ Location
โ€“ Activation Code

After saving, the device becomes registered with the server.

eBioServer - Device List
Device entry in eBioServer โ€” add device name, serial, location and activation code.

๐ŸŒ Configure Communication Settings on the Device

On the biometric device, open the network / cloud settings and set:
โ€“ Server Mode: ADMS
โ€“ Server Address: Public / static / VPN IP of your eBioServer
โ€“ Server Port: 100 (default)
โ€“ Enable domain/APN only if required

Restart the device after saving the settings.

Device Cloud Server Settings
Set Server Address & Port on device (Cloud Server Settings).

๐Ÿ“ถ Verify Device Online Status

Once the device restarts, it should display Online in the webapp dashboard. If not, recheck network, firewall, IP and port settings.

๐Ÿ‘ค Enroll Employees on the Device

Register each employee in the device with:
โ€“ Unique User ID
โ€“ Name
โ€“ Fingerprint and/or Face template

Verify the enrollment inside the device UI.

User on device - enrollment
Example: User record on biometric device showing User ID and templates.

Map Device User ID inside ERPNext Employee
After confirming enrollment inside the device, open the Employee record in ERPNext and map the exact User ID to ensure correct attendance syncing.

  • Navigate to Employee โ†’ Attendance & Leaves
  • Enter the same Attendance Device ID (Biometric/RF Tag ID) shown in the biometric device (e.g., 0111)
  • Save the Employee record โ€” this mapping is mandatory for proper sync
Employee Biometric ID Mapping
Example: Map id from device inside Employee record in ERPNext.

Configure Biometric Sync Settings in ERPNext

Next, configure the connection between ERPNext and the biometric webapp (eSSL Bio Server / eTimeTrackLite). These settings define how the sync engine communicates with the device server.

  • Open: Home โ†’ Biometric Integration โ†’ Biometric Sync Settings
  • Server Type: Select Bio Server or appropriate server type
  • Location: Choose the mapped location created earlier (example: AKHILAM)
  • API User: Enter the webapp login username
  • API Password: Enter the webapp login password
  • Endpoint URL: Include full URL + port, e.g. http://192.168.1.12:100
  • Click Save to store the configuration
Biometric Sync Settings
Example: Sync Setting Doctype in ERPNext.

Test Connection & Run Initial Sync

  • Click Test Connection to verify ERPNext โ†’ Webapp communication
  • If successful, click Sync Now to fetch logs instantly
  • The system retrieves:
    • Device punch logs
    • Employee IDs & timestamps
    • Mapped entries โ†’ Check-in / Attendance
  • Review the results in Biometric Sync Log

Common Issues & Fixes

  • Device not reachable: Check server IP, firewall, routing, port configuration
  • Device shows offline: Confirm device โ†’ server communication, restart device
  • Logs appear but employee missing: Ensure correct mapping of Attendance Device ID in the Employee record
  • Duplicate entries: ERPNext prevents duplicates unless the device sends repeated timestamps

11. Frequently Asked Questions

  • โ“ Does this integration work with multiple biometric devices?
    โœ… Yes โ€” you can configure multiple devices, each with separate sync settings.
  • โ“ How often does the sync run?
    โœ… The sync scheduler runs based on your configured interval (every few minutes, hourly, etc.).
  • โ“ What if a device is offline?
    โœ… The system retries gracefully and logs the failure in the Sync Log with a clear message.
  • โ“ Can duplicate attendance be created?
    โŒ No โ€” duplicate protection prevents creation of repeated check-ins or attendance entries.
  • โ“ What happens if an employee ID doesn’t match?
    โš ๏ธ The event is imported into staging and flagged for review until mapped properly.
  • โ“ Does this overwrite existing attendance?
    โŒ Never โ€” it only inserts new check-ins or attendance entries.

12. Security & Data Handling

  • ๐Ÿ” Secure storage of device credentials
    Authentication details are stored in protected fields and never exposed to end users.
  • ๐Ÿ”’ HTTPS communication
    API calls to devices or middleware use secure channels where supported.
  • ๐Ÿงพ Full audit trail of sync runs
    Each sync stores status, timestamps, failures, and device metadata in the Sync Log.
  • ๐Ÿšซ No external data sharing
    Attendance data stays entirely within your ERPNext system.
  • ๐Ÿงฉ Permission-controlled access
    Only authorized users can access sync settings, logs, or device credentials.

13. Support

๐Ÿ“ฉ Email: support@akhilaminc.com
๐ŸŒ Or contact us via our website for implementation or customizations.

Leave a Reply

Your email address will not be published. Required fields are marked *