Frontend
Salary
Salary Versioning

Salary Versioning

Navigation Path

Salary → Salary Versioning


Salary Versioning Page

URL:
salary/salary-versioning


Page Description

The Salary Versioning page is used to view different versions of processed salaries for employees.
Each time a salary is reprocessed or revised, a new version is created. This page helps admins track salary history and compare versions.


Search Filters

Users can search salary versions using the following parameters:

FieldDescription
Employee CodeSearch salary versions for a specific employee
MonthSelect the salary month
YearSelect the salary year

Actions

  • Search – Fetch salary version records based on selected filters
  • Reset – Clear all filters and reload default data

Salary Version List

The table displays all available salary versions matching the search criteria.

Table Columns

ColumnDescription
S NoSerial number
Employee CodeUnique employee identifier
Employee NameName of the employee
CompanyCompany name
Month / YearSalary month and year
VersionSalary version number
BasicBasic salary amount
GrossGross salary amount
Net PayFinal payable salary
StatusSalary processing status

Table Features

  • Column-level search and filtering
  • Horizontal scrolling for wide datasets
  • Checkbox selection (if enabled)
  • Empty state message when no data is available

Message displayed when no records exist:
No salary versioning records found


Export Option

  • Export button allows downloading salary version data for reporting or audit purposes.

Access Control

  • This page is accessible to Admin and Super Admin roles.
  • Salary versions are read-only and cannot be modified from this page.

Notes

  • Salary versions are auto-generated during salary reprocessing.
  • Each version represents a snapshot of salary data at the time of processing.
  • This module is used for audit, verification, and historical comparison.

Navigation Path

Salary → Salary Versioning


Related Pages

  • Salary Process
  • Salary Approval – Branch
  • Salary Approval – Billing
  • Salary Approval – Accounts

API Endpoints

The Salary Versioning module interacts with the following API endpoints:

Base URL

export const SALARYVERSIONING_URL = '/api/salaryVersioning'

Endpoints

EndpointMethodDescriptionParameters/Body
${SALARYVERSIONING_URL}/createPOSTCreate a new salary versioning recordBody: data
${SALARYVERSIONING_URL}/listGETGet salary versioning records with filtersQuery: page, limit, empCode, month, year
${SALARYVERSIONING_URL}/:idGETGet salary versioning record by IDPath: id
${SALARYVERSIONING_URL}/process/attendance/:attendanceIdGETGet versioning records for process by attendance IDPath: attendanceId
${SALARYVERSIONING_URL}/process/voucher/:voucherIdGETGet versioning records for process by voucher IDPath: voucherId
${SALARYVERSIONING_URL}/:idPUTUpdate an existing salary versioning recordPath: id, Body: body
${SALARYVERSIONING_URL}/delete/:idDELETEDelete a salary versioning recordPath: id
${SALARYVERSIONING_URL}/export/excelGETExport salary versioning records to ExcelQuery: query (filters), Returns: Excel file (blob)
${SALARYVERSIONING_URL}/import/excelPOSTImport salary versioning records from ExcelBody: data (file)
${SALARYVERSIONING_URL}/comparison/attendance/:attendanceIdGETGenerate comparison report by attendance IDPath: attendanceId, Returns: Report file (blob)
${SALARYVERSIONING_URL}/comparison/voucher/:voucherIdGETGenerate comparison report by voucher IDPath: voucherId, Returns: Report file (blob)
${SALARYVERSIONING_URL}/comparison/comprehensiveGETGenerate comprehensive comparison reportQuery: query (filters), Returns: Report file (blob)

RTK Query Hooks

The following hooks are available for frontend integration:

  • useCreateSalaryVersioningMutation
  • useGetSalaryVersioningRecordsQuery
  • useGetSalaryVersioningRecordByIdQuery
  • useGetVersioningRecordsForProcessByAttendanceIdQuery
  • useGetVersioningRecordsForProcessByVoucherIdQuery
  • useUpdateSalaryVersioningRecordMutation
  • useDeleteSalaryVersioningRecordMutation
  • useExportSalaryVersioningRecordsQuery
  • useLazyExportSalaryVersioningRecordsQuery
  • useImportSalaryVersioningRecordsMutation
  • useGenerateComparisonReportByAttendanceIdQuery
  • useGenerateComparisonReportByVoucherIdQuery
  • useGenerateComprehensiveComparisonReportQuery
  • useLazyGenerateComprehensiveComparisonReportQuery

End of documentation