Frontend
PF & ESI
ESI Highliter

ESI Highlighter

Navigation Path

PF & ESI → ESI Highlighter


URL

/pf-esi/esi-highliter


Description

The ESI Highlighter module is used to analyze and highlight Employees’ State Insurance (ESI) contribution applicability and data accuracy across employees. It helps payroll and compliance teams validate ESI deductions before challan generation and statutory filing.

Key Capabilities:

  • Filter ESI data by employee, client, unit, and designation
  • Highlight ESI applicability and contribution status
  • State-wise and branch-wise ESI analysis
  • Month-wise and year-wise ESI review
  • Identify employees exceeding ESI wage limits
  • Detect missing or incorrect ESI deductions
  • Support ESI statutory compliance verification

1. Page Overview

What is ESI Highlighter?

ESI Highlighter is a pre-compliance analytical tool that highlights ESI-related payroll data. It allows users to verify whether ESI contributions are correctly applied to eligible employees before ESI challan generation.

Key Highlights:

  • Used before ESI challan generation
  • Supports multi-employee and multi-unit analysis
  • Identifies ESI eligibility and exemption cases
  • Reduces compliance errors and penalties

Typical Use Cases

  • Validate ESI applicability for newly onboarded employees
  • Cross-check ESI deductions before monthly filing
  • Identify employees missing ESI contribution
  • Review ESI data client-wise or unit-wise
  • Ensure statutory compliance under the ESI Act

2. Filter Section

The filter section allows granular selection of employees and payroll data for ESI analysis.


Employee

FieldTypeDescription
EmployeeMulti-select listSelect one or more employees

Features:

  • Searchable employee list
  • Multi-select with checkbox
  • Scrollable list for large datasets

Purpose:

  • Analyze ESI data at employee level
  • Verify individual ESI eligibility

Client

FieldTypeDescription
ClientMulti-select listSelect client(s)

Features:

  • Searchable list
  • Multi-select capability

Purpose:

  • Client-wise ESI compliance review

Unit

FieldTypeDescription
UnitMulti-select listSelect unit(s)

Features:

  • Multi-select with checkbox
  • Displays unit code and name

Purpose:

  • Unit-wise ESI data analysis

Designation

FieldTypeDescription
DesignationMulti-select listSelect designation(s)

Features:

  • Searchable designation list
  • Multi-select option

Purpose:

  • Role-based ESI applicability analysis

State

FieldTypeDescription
StateDropdownSelect state

Purpose:

  • State-wise ESI compliance verification
  • Useful when coverage differs by location

Branch

FieldTypeDescription
BranchDropdownSelect branch

Purpose:

  • Branch-wise ESI contribution review

Month

FieldTypeDescription
MonthDropdownSelect salary month

Options:

  • January to December

Purpose:

  • Review ESI deductions for a specific payroll month

Year

FieldTypeDescription
YearDropdownSelect salary year

Purpose:

  • Year-wise ESI compliance analysis
  • Historical ESI verification

3. Action Buttons

Search

PropertyDescription
ColorPurple
ActionFetch ESI highlighted data

Behavior:

  • Retrieves ESI data based on selected filters
  • Displays highlighted results for review

Reset

PropertyDescription
ColorGray
ActionClear all selections

Behavior:

  • Clears all filters
  • Resets the page to default state
  • Removes highlighted output

4. Results Section

After clicking Search, the system displays highlighted ESI payroll data.


Highlighted Output

Possible Highlights:

  • Employees eligible for ESI with correct deduction
  • Employees missing ESI contribution
  • Employees exceeding ESI wage ceiling
  • Employees exempt from ESI
  • Data mismatches requiring correction

Usage:

  • Validate ESI data before challan generation
  • Correct payroll configuration issues
  • Ensure statutory accuracy

5. Compliance Notes

  • ESI Highlighter should be used before challan generation
  • Helps avoid incorrect ESI filing
  • Reduces risk of penalties and interest
  • Supports audit and inspection readiness


6. Field Definitions, Usage, and Calculation Logic

The ESI Highlighter is a sophisticated PDF processing tool that bridges the gap between payroll records and statutory ECR (Electronic Challan cum Return) files.

Technical field Definitions (Internal Matching)

FieldSourceDescription
ESI NumberesiNoThe primary key used to match payroll records with PDF text content.
Employee NameempNameUsed for verification and display on the generated summary page.
Employee CodeempCodeInternal identifier used to cross-reference SalaryAutoProcess records.
Coordinatesx, y, width, heightSpatial data extracted from the PDF to position the highlight overlay.

Usage & Highlighting Mechanism

  1. Data Synchronization:
    • The system first retrieves all employees matching the selected filters (Client, Unit, etc.) for the specific month/year.
    • It collects their ESI Numbers from the SalaryAutoProcess table.
  2. PDF Parsing:
    • The backend engine loads the uploaded ESI ECR PDF for that period.
    • It performs a deep text-extraction to find the exact spatial coordinates of each target ESI Number.
  3. Highlighter Overlay:
    • Using the pdf-lib library, the system draws semi-transparent yellow rectangles over the matching rows in the PDF.
  4. Summary Generation:
    • An automated Summary Page is prepended to the document.
    • This page lists every highlighted employee, their ESI number, and the page number where they appear in the original document.

Logic & Constraints

  • Normalization: The system normalizes ESI numbers (removing spaces/hyphens) before matching to ensure high accuracy regardless of PDF formatting.
  • Exact Match: Only rows containing an exact match for the filtered ESI numbers are highlighted.
  • ZIP Export: If multiple ECR PDFs are found for the filtered criteria, the system bundles all highlighted versions into a single .zip file for download.

The ESI Highlighter module is a critical validation tool that ensures accurate ESI contribution processing across employees, units, and clients. It helps organizations maintain compliance with ESI regulations by identifying issues early in the payroll cycle.