Frontend
Masters
LWF Slab Master

LWF Slab Master

Navigation Path

Company → Masters → LWF Slab Master


Module URLs

  • List Page: /masters/lwf-slab-master
  • Add Page: /masters/lwf-slab-master
  • Edit Page: /masters/lwf-slab-master/edit-lwf-slab-master/:id

1. LWF Slab List Page

URL

/masters/lwf-slab-master

Page Description

  • Displays all configured Labour Welfare Fund (LWF) slabs
  • Allows users to search, edit, and delete LWF slab records
  • Used for statutory LWF calculation based on state and city

List Table Columns

Column NameDescription
S NoSerial number
StateState name
CityCity name
Effect TypeType of LWF effect
Effective FromEffective start date
SequenceProcessing sequence
AmountLWF amount
Employer MultipleEmployer contribution multiplier
LWF LimitMaximum LWF limit
ActionsEdit and Delete

Row Actions

ActionDescription
EditOpens Edit LWF Slab page
DeleteOpens delete confirmation popup

2. Add LWF Slab Page

URL

/masters/lwf-slab-master

Page Description

  • Allows administrators to create a new LWF slab
  • Configures state-wise and city-wise LWF rules
  • Defines effective date and contribution limits

Add LWF Slab – Fields

Field NameTypeMandatoryDescription
StateDropdownYesSelect applicable state
CityDropdownYesSelect applicable city
Effect TypeDropdownYesSelect LWF effect type
Effective FromDate PickerYesLWF applicability start date
SequenceNumber InputYesProcessing order
AmountNumber InputYesLWF contribution amount
Employer MultipleNumber InputNoEmployer contribution multiplier
LWF LimitNumber InputNoMaximum LWF contribution limit

Actions

ActionBehavior
SaveValidates and saves LWF slab
ResetClears all entered values
CancelNavigates back to LWF Slab List

Validation Rules

  • State is mandatory
  • City is mandatory
  • Effect Type must be selected
  • Effective From date is mandatory
  • Sequence and Amount must be numeric
  • Duplicate slabs for same State, City, and Effective Date are not allowed

3. Edit LWF Slab Page

URL

/masters/lwf-slab-master/edit-lwf-slab-master/:id

Triggered From

LWF Slab List Page → Edit icon


Page Description

  • Allows modification of existing LWF slab configuration
  • All fields are pre-filled with saved data

Editable Fields

Field NameEditable
StateYes
CityYes
Effect TypeYes
Effective FromYes
SequenceYes
AmountYes
Employer MultipleYes
LWF LimitYes

Actions

ActionBehavior
UpdateSaves updated LWF slab
CancelDiscards changes and returns to list

4. Delete LWF Slab

Triggered From

LWF Slab List Page → Delete icon


Confirmation Message

“Are you sure you want to delete this LWF slab?”


Actions

  • Yes / Confirm → Permanently deletes the LWF slab
  • Cancel → Closes confirmation dialog

Summary

The LWF Slab Master ensures accurate statutory Labour Welfare Fund calculations by defining state-wise and city-wise slabs with effective dates and contribution limits.


Field Definitions, Usage, and Calculation Logic

This section providing a technical analysis of the LWF Slab Master's data structure and its role in statutory compliance.

1. Field Definitions

Field NameData TypeDescriptionExample Value
stateObjectIdReference to stateMaster. The primary geographic scope.Maharashtra
CityObjectIdReference to SalaryCityMaster. Specific city scope.Pune
effectTypeStringFrequency of contribution (Monthly, Yearly, etc.).Half Yearly
effectiveFromDateThe date from which this specific slab becomes active.2024-12-01
SequenceStringSorting/Processing order for multiple slabs.1
AmountNumberEmployee Contribution amount (Required).12.00
employerMultipleNumberMultiplier to calculate Employer Contribution.3
lwfLimitNumberMaximum gross salary limit for LWF applicability.3000

2. Field Usage & System Impact

CategoryValidation / RuleSystem Behavior
Geographystate + CityScopes the statutory rule to specific administrative regions.
FrequencyeffectTypeDetermines in which payroll months the deduction is triggered.
IndexingcompanyId + state + CityEnforced unique index to prevent overlapping geographical definitions.
DeductionAmountDirect deduction from employee's net pay.

3. Business & Calculation Logic

The LWF Slab Master handles complex statutory deductions with the following technical rules:

A. Contribution Calculation

  • Employee Share: Is the fixed Amount defined in the slab.
  • Employer Share: Is calculated dynamically as: Amount * employerMultiple.
    • Example: If Amount is ₹10 and Employer Multiple is 3, the total LWF contribution is ₹40 (10 employee + 30 employer).

B. Frequency Mapping (Import Logic)

During bulk Excel imports, the system uses shorthand codes to map frequencies:

  • MMonthly
  • YYearly
  • HHalf Yearly
  • QQuarterly

C. All-in-One Integration

The import process is designed for maximum efficiency:

  • Auto-Creation: If a State or City referenced in the Excel sheet does not exist in the respective masters, the system auto-creates them on-the-fly (LWFApplicable: true).
  • Upsert Pattern: If a slab already exists for the same geographical scope and frequency, the system updates the amounts and sequence instead of creating a duplicate.

API Endpoints

The LWF Slab Master module interacts with the following API endpoints:

Base URL

export const LWFSLABMASTER_URL = '/api/lwfSlabMaster'

Endpoints

EndpointMethodDescriptionParameters/Body
${LWFSLABMASTER_URL}POSTCreate a new LWF slab masterBody: data
${LWFSLABMASTER_URL}GETGet all LWF slab mastersQuery: page, limit
${LWFSLABMASTER_URL}/:lwfSlabIdGETGet LWF slab master by IDPath: lwfSlabId
${LWFSLABMASTER_URL}/:lwfSlabIdPATCHUpdate an existing LWF slab masterPath: lwfSlabId, Body: body
${LWFSLABMASTER_URL}/delete/:lwfSlabIdPATCHDelete a LWF slab masterPath: lwfSlabId
${LWFSLABMASTER_URL}/searchPOSTSearch LWF slabsBody: data
${LWFSLABMASTER_URL}/exportPOSTExport LWF slabsBody: data
${LWFSLABMASTER_URL}/importPOSTImport LWF slabsBody: data

RTK Query Hooks

The following hooks are available for frontend integration:

  • useCreateLWFSlabMasterMutation
  • useGetAllLWFSlabMastersQuery
  • useGetLWFSlabMasterByIdQuery
  • useUpdateLWFSlabMasterMutation
  • useDeleteLWFSlabMasterMutation
  • useSearchLwfSlabsMutation
  • useExportLwfSlabsMutation
  • useImportLwfSlabsMutation

End of Documentation