Frontend
Masters
Designation

Designation Master

Navigation Path

Company → Masters → Designation Master


1. Add Designation Page

URL

/masters/designation-master

Page Description

  • Displays a list of all designations configured in the system
  • Allows management of role hierarchy, wage configuration, and statutory applicability
  • Provides actions to add, edit, and delete designation records

2. Add Designation Page


Add Designation – Fields

Field NameTypeMandatoryDescription
UnitDropdown (Creatable)YesSelect or create a unit
DesignationDropdownYesSelect designation (Unit dependent)
LevelDropdownYesSelect designation level
Seniority LevelText InputNoEnter seniority level
AmountNumber InputNoEnter wage amount
GPA AmountNumber InputNoEnter GPA amount
QualificationText InputNoEnter required qualification
RemarksText AreaNoEnter remarks
Wage TypeDropdownYesSelect wage type
Provident Fund ApplicableCheckboxNoEnable PF applicability
PF Based OnDropdownConditionalBasis for PF calculation
ESI ApplicableCheckboxNoEnable ESI applicability
ESI Based OnDropdownConditionalBasis for ESI calculation
Bonus ApplicableCheckboxNoEnable bonus applicability
Bonus Based OnDropdownConditionalBasis for bonus calculation

Actions

ActionBehavior
SaveValidates and saves the designation
ResetClears all entered values
CancelReturns to Designation List page

Validation Rules

  • Unit is mandatory
  • Designation is mandatory
  • Level and Wage Type must be selected
  • Conditional fields become mandatory based on statutory applicability selection


Field Definitions, Usage, and Calculation Logic

This section provides a technical analysis of the Designation Master's role in salary structuring and statutory compliance.

1. Field Definitions

Field NameData TypeDescriptionExample Value
designationNameStringOfficial designation title (Uppercase).SENIOR MANAGER
unitIdObjectIdReference to the parent Unit/Location.60b1c...
amountNumberBase salary or CTC for the designation.45000
PFBasedOnEnumBasis for EPF deduction calculation.Basic
esiBasedOnEnumBasis for ESI deduction calculation.Asper Rule
bonusBasedOnEnumBasis for statutory bonus eligibility.21000Limit
wageTypeStringType of wage (Monthly/Daily/Piece).Monthly

2. Field Usage & System Impact

CategoryValidation / RuleSystem Behavior
CompensatoryamountThis value serves as the default entry point for salary structure definitions.
StatutoryPFApplicableIf checked, the system applies the PFBasedOn rule during payroll cycles.
StatutoryESIApplicableIf checked, the system evaluates employee earnings against the esiBasedOn rule.
IntegrityUnit-CentricDesignations are unique per unitId. Different units can have distinct configurations for the same role name.

3. Business & Calculation Logic

The Designation Master is a high-level template for employee compensation.

A. Automated Salary Head Assignment

One of the most critical background processes in the system:

  1. Trigger: When a new designation is saved (or bulk imported), a post-save hook is triggered.
  2. Cloning: The system fetches all active heads from the Company Head Master (CompanyHeadMaster).
  3. Seeding: It automatically populates the Salary Head Master for this specific designation-unit combination with those heads. This ensures that every new role created automatically inherits the company's standard earnings (Basic, HRA, etc.) and deductions.

B. Statutory Basis Logic

  • PF Based On: Supports complex logic like SpecialBasicCondition or Manual21kLimit. These enums instruct the payroll calculation engine whether to cap the PF contribution at the statutory limit (e.g., ₹15,000) or calculate on actual basic pay.
  • ESI Based On: Rules like Asper Rule With Condition allow the system to automatically handle ESI eligibility as employee's gross pay fluctuates across the monthly ESI threshold.

C. Role Revision Management

The RevisedDesignation field links to a secondary master tracking historical role changes, allowing the system to maintain a career progression trail for each employee profile.


The Designation Master module interacts with the following API endpoints:

Base URL

export const DESIGNATIONMASTER_URL = '/api/salaryDesignationMaster'

Endpoints

EndpointMethodDescriptionParameters/Body
${DESIGNATIONMASTER_URL}POSTCreate a new designationBody: data
${DESIGNATIONMASTER_URL}GETGet all designationsQuery: page, limit
${DESIGNATIONMASTER_URL}/:designationIdGETGet designation by IDPath: designationId
${DESIGNATIONMASTER_URL}/uniqueGETGet all unique designation names
${DESIGNATIONMASTER_URL}/:designationIdPATCHUpdate an existing designationPath: designationId, Body: body
${DESIGNATIONMASTER_URL}/delete/:designationIdPATCHDelete a designationPath: designationId
${DESIGNATIONMASTER_URL}/search/designationGETSearch designationsQuery: query
${DESIGNATIONMASTER_URL}/importPOSTImport designationsBody: data
${DESIGNATIONMASTER_URL}/export/searchGETSearch and export designationsQuery: query
${DESIGNATIONMASTER_URL}/import/from-exportPOSTImport designations from exported sheetBody: data
${DESIGNATIONMASTER_URL}/unique/filteredPOSTGet unique designation names with filtersBody: data

RTK Query Hooks

The following hooks are available for frontend integration:

  • useCreateDesignationMutation
  • useDeleteDesignationMutation
  • useGetAllDesignationsQuery
  • useGetDesignationByIdQuery
  • useUpdateDesignationMutation
  • useSearchDesignationQuery
  • useLazySearchDesignationQuery
  • useImportDesignationsMutation
  • useSearchAndExportDesignationsQuery
  • useLazySearchAndExportDesignationsQuery
  • useImportDesignationsFromExportedSheetMutation
  • useGetAllUniqueDesignationNamesQuery
  • useGetUniqueDesignationNamesWithFiltersMutation

End of Documentation