Module

Report

Represents a Report page component

View Source pages/Dashboard/Report/Report.jsx, line 57

Members

String

# static company

React useState for company

Default Value:
  • ""

View Source pages/Dashboard/Report/Report.jsx, line 96

number

# static currentYear

Constant that holds the current year

View Source pages/Dashboard/Report/Report.jsx, line 131

void | any | null

# static fileExtension

Constant that holds the file extension

View Source pages/Dashboard/Report/Report.jsx, line 222

Boolean

# static filterDropdown

React useState for filter dropdown

Default Value:
  • false

View Source pages/Dashboard/Report/Report.jsx, line 63

number

# static fiscalYears

Constant that holds the list of fiscal years

View Source pages/Dashboard/Report/Report.jsx, line 138

Boolean

# static gridView

React state to handle grid view

Default Value:
  • true

View Source pages/Dashboard/Report/Report.jsx, line 71

String

# static reportType

React useState for report type

Default Value:
  • ""

View Source pages/Dashboard/Report/Report.jsx, line 106

Array.<object>

# static reports

React useMemo for getting reports list

View Source pages/Dashboard/Report/Report.jsx, line 154

String

# static searchInput

React useState for search input

Default Value:
  • ""

View Source pages/Dashboard/Report/Report.jsx, line 80

String

# static selectedYear

React useState for Selected Year

Default Value:
  • ""

View Source pages/Dashboard/Report/Report.jsx, line 123

String

# static sortBy

React useState for sort by

Default Value:
  • ""

View Source pages/Dashboard/Report/Report.jsx, line 88

function

# static useGetReports

React query hook for getting reports

View Source pages/Dashboard/Report/Report.jsx, line 115

Methods

# inner handleDownload(name, pdfUrl)

Function to handle download the report

Parameters:
Name Type Description
name String

Name of the report

pdfUrl String

Url of the report

View Source pages/Dashboard/Report/Report.jsx, line 232

# inner handleYearChange(event)

Function to handle year change

Parameters:
Name Type Description
event Event

Html event object

View Source pages/Dashboard/Report/Report.jsx, line 145