Frontend
Masters
Grade Master

Grade Master

The Grade Master enables structured classification of employee grades for payroll, benefits, and operational rules. It allows for definitive pay scales or percentage-based increments specific to stations and salary heads.

Navigation Path

Company → Masters → Grade Master


1. Grade List Page

URL

/masters/grade-master

Page Description

  • Displays all configured grades and their associated amounts/limits.
  • Provides a centralized interface to manage grade-level compensation rules.
  • Grades are used during employee onboarding and payroll processing to determine basic pay or allowances.

Filter & Search Section

Field NameTypeDescription
DescriptionText InputSearch for a specific grade by its descriptive name.

Actions:

  • Search → Filters the grade list based on the entered description.
  • Reset → Clears the search field and reloads the full list.

List Table Columns

Column NameDescription
S NoSerial number.
DescriptionThe human-readable name of the grade.
AmountThe fixed amount or percentage value assigned to this grade.
Order NoPriority/Display sequence number.
Max LimitThe maximum ceiling value for this grade (if applicable).
ActionsEdit and Delete options.

Row Actions

ActionDescription
EditOpens the Edit Grade drawer/form with pre-filled data.
DeleteOpens a delete confirmation alert.

2. Add Grade Page

Triggered From

Grade List Page → Add Grade button

Page Description

  • Allows administrators to create a new grade with specific calculation rules.
  • Associates the grade with a specific Station and Salary Head.

Add Grade – Fields

Field NameTypeMandatoryDescription
DescriptionText InputYesEnter the grade’s name (e.g., Grade A, Senior).
Order NoNumber InputYesDefine the sorting priority (Lower numbers appear first).
Stationed AtDropdownYesSelect the physical location mapping for this grade.
HeadDropdownYesSelect the Salary Head (e.g., Basic) this grade applies to.
AmountNumber InputYesEnter the fixed value or percentage.
Max LimitNumber InputNoSet a maximum cap for calculation.
Percent ApplicableCheckboxNoIf checked, the Amount is treated as a percentage.
YearlyCheckboxNoIf checked, the amount is processed on a yearly basis.

Actions

ActionBehavior
SaveValidates the configuration and saves the new grade.
ResetClears all input fields.
CancelReturns to the Grade List page.

Validation Rules

  • Description and Order No are mandatory.
  • Stationed At and Head must be selected from existing Masters.
  • Input is validated to ensure numeric values for amounts and limits.

3. Edit Grade Page

Triggered From

Grade List Page → Edit icon

Page Description

  • Updates existing grade rules.
  • Changes here impact future salary calculations for employees linked to this grade.

Editable Fields

Field NameEditable
DescriptionYes
Stationed AtYes
HeadYes
AmountYes
Limit FlagsYes

Actions

ActionBehavior
UpdateSaves the modified grade configuration.
CancelDiscards changes and returns to the list view.

4. Delete Grade Confirmation Alert

Triggered From

Grade List Page → Delete icon

Alert Content

  • "Are you sure you want to delete this Grade?"

Actions:

  • Confirm / Yes → Soft deletes the grade (isDeleted.status: true).
  • Cancel → Dismisses the alert.

Field Definitions, Usage, and Calculation Logic

1. Technical Field Definitions

Field NameData TypeDescription
DescriptionStringCommercial/Official name of the grade category.
OrderNumberSorting priority for UI and reporting.
AmountNumberThe base value or percentage factor.
MaxLimitNumberThe ceiling value; system will not exceed this during calculation.
PercentApplicableBooleanDetermines if Amount is a multiplier or a fixed sum.
YearlyBooleanDefines the periodicity of the grade amount.

2. Business Logic & System Impact

A. Multi-Dimensional Scoping

Grades are unique in that they bridge Stationed At and Salary Heads. This allows a company to have different "Basic" amounts for the same grade name if the employees are stationed at different locations (e.g., Delhi vs. Mumbai).

B. Calculation Behavior

  • If PercentApplicable = true: The system treats the amount as a decimal/percentage (e.g., 10 = 10%) typically applied to a base component.
  • If Yearly = true: The amount reflects an annual figure, which may be divided by 12 during monthly payroll processing depending on the specific engine config.

API Endpoints

Base URL

export const GRADEMASTER_URL = '/api/salaryGradeMaster'

Endpoints

EndpointMethodDescriptionParameters/Body
${GRADEMASTER_URL}POSTCreate a new gradeBody: data
${GRADEMASTER_URL}GETGet all gradesQuery: page, limit
${GRADEMASTER_URL}/:idGETGet grade details by IDPath: gradeId
${GRADEMASTER_URL}/:idPATCHUpdate grade detailsPath: id, Body: data
${GRADEMASTER_URL}/delete/:idPATCHSoft delete a gradePath: id

RTK Query Hooks

Available in gradeMasterSlice.js:

  • useCreateGradeMasterMutation
  • useGetAllGradeMastersQuery
  • useGetGradeMasterByIdQuery
  • useUpdateGradeMasterMutation
  • useDeleteGradeMasterMutation

Summary

The Grade Master provides the technical backbone for varied pay structures. By combining stationing constraints with flexible percentage/fixed amount logic, it supports complex organizational compensation models.


End of Documentation