Frontend
Masters
Financial Year

Financial Year

Navigation Path

Company → Masters → Financial Year


1. Financial Year List Page

URL

/masters/financial-year

Page Description

  • Displays a list of all financial years configured in the system
  • Allows admins to manage active and historical financial year records
  • Provides actions to add, edit, and delete financial year entries

List Table Columns

Column NameDescription
S NoSerial number
From DateFinancial year start date
To DateFinancial year end date
ActionsEdit and Delete options

Row Actions

ActionDescription
EditOpens Edit Financial Year page with pre-filled data
DeleteOpens delete confirmation alert

2. Add Financial Year Page

Triggered From

Financial Year List Page → Add Financial Year button

Page Description

  • Allows admins to define a new financial year period
  • Used for payroll, accounting, and statutory calculations

Add Financial Year – Fields

Field NameTypeMandatoryDescription
From DateDate PickerYesSelect financial year start date
To DateDate PickerYesSelect financial year end date

Actions

ActionBehavior
SaveValidates and saves the financial year
ResetClears selected dates
CancelReturns to Financial Year List page

Validation Rules

  • From Date is mandatory
  • To Date is mandatory
  • To Date must be later than From Date
  • Overlapping financial years are not allowed

3. Edit Financial Year Page

Triggered From

Financial Year List Page → Edit icon

Page Description

  • Allows updating existing financial year details
  • All fields are pre-filled with saved data

Editable Fields

Field NameEditable
From DateYes
To DateYes

Actions

ActionBehavior
UpdateSaves changes
CancelDiscards changes and navigates back

4. Delete Financial Year Confirmation Alert

Triggered From

Financial Year List Page → Delete icon

Alert Content

  • Confirmation message before deletion

Actions:

  • Confirm / Yes → Deletes the financial year
  • Cancel → Closes the alert without action

Delete Behavior

  • Financial year is removed permanently after confirmation
  • Deletion may be restricted if the financial year is already in use


Field Definitions, Usage, and Calculation Logic

This section provides a technical analysis of the Financial Year Master's data structure and its role in payroll cycles.

1. Field Definitions

Field NameData TypeDescriptionExample Value
startDateDateBeginning of the financial period (Required).2024-04-01
endDateDateEnd of the financial period (Required).2025-03-31
calendarYearNumberRepresentative numeric year for reporting.2024
isActiveBooleanOperational status (Default: true).true
companyIdObjectIdReference to the parent Company.60a8b...

2. Field Usage & System Impact

CategoryValidation / RuleSystem Behavior
PeriodicitystartDate < endDateEnforced at the UI and Controller level to prevent invalid date ranges.
Active CycleisActiveOnly one financial year should typically be "Active" for current payroll processing.
Audit TraceinsertedUserIdAutomatically linked to the system user for accountability in fiscal setup.

3. Business & Calculation Logic

The Financial Year Master governs the boundaries of salary processing and statutory filing:

A. Fiscal Bounds & Tax Calculation

  • Income Tax: The startDate and endDate define the bucket for investment declarations and tax projections. All salary slips generated within this range are aggregated for Form 16 and fiscal year-end calculations.
  • Sequentiality: The system uses calendarYear for sorting and quick-lookup in drop-down menus (e.g., "FY 2024-25").

B. Administrative Lifecycle

  • Soft-Delete: Deleting a financial year (isDeleted.status: true) hides it from the "Active Year" selection in settings, preventing new transactions from being posted to an old or incorrect fiscal period.
  • Concurrency: The use of companyId ensures that multiple companies within the same group can maintain different financial year cycles (e.g., April-March vs Jan-Dec).

C. Relational Integrity

The _id of the Financial Year is a mandatory field in Salary Slip generation and Leave Management (for leave reset cycles). Deletion is restricted if there are processed payroll records linked to the specific year.


The Financial Year Master module interacts with the following API endpoints:

Base URL

export const FINANCIALYEAR_URL = '/api/salaryFinancialYear'

Endpoints

EndpointMethodDescriptionParameters/Body
${FINANCIALYEAR_URL}POSTCreate a new financial yearBody: data
${FINANCIALYEAR_URL}GETGet all financial yearsQuery: page, limit
${FINANCIALYEAR_URL}/:financialYearIdGETGet financial year by IDPath: financialYearId
${FINANCIALYEAR_URL}/:financialYearIdPATCHUpdate an existing financial yearPath: financialYearId, Body: body
${FINANCIALYEAR_URL}/delete/:financialYearIdPATCHDelete a financial yearPath: financialYearId

RTK Query Hooks

The following hooks are available for frontend integration:

  • useCreateFinancialYearMutation
  • useGetAllFinancialYearsQuery
  • useGetFinancialYearByIdQuery
  • useUpdateFinancialYearMutation
  • useDeleteFinancialYearMutation

End of Documentation