The reports view combines the three most common reports into a single page, including the P&L, Balance Sheet, and Cash Flow Statement.
These are the tabular forms of these reports rather than interactive charts.
import { Reports } from '@layerfi/components'
< Reports
stringOverrides = { {
title: 'My reports title' ,
downloadButton: {
downloadButtonText: 'Export' ,
},
} }
enabledReports = { [ 'profitAndLoss' ] }
renderInAppLink = { convertLinkingMetadataToLink }
/>
Properties
Controls whether the page title/header is displayed.
Array of reports to enable. Defaults to all three reports. Available values: ['profitAndLoss', 'balanceSheet', 'statementOfCashFlow'].
If more than one report is enabled, view will include a tabbed interface to switch between reports.
renderInAppLink
(source: LinkingMetadata) => ReactNode
Custom function for rendering in-app navigation links. See the In-App Linking guide for details.
comparisonConfig
ProfitAndLossCompareConfig
Configuration for P&L tag comparison mode. Show ProfitAndLossCompareConfig properties
Controls whether time-series comparison options are shown in the compare controls (e.g. group by month, year)
Controls whether tag comparison options are shown in the compare controls.
When false, tagComparisonOptions and defaultTagFilter are not used.
Array of tag-based comparison options. Show TagComparisonOption properties
Display name for this comparison option.
Tag filter configuration for this comparison.
The default tag filter to apply on initial render.
Show TimeRangePickerConfig properties
Controls the granularity of date selection for the P&L report.
csvMoneyFormat
'CENTS' | 'DOLLAR_STRING'
Money format for CSV export. 'CENTS' formats as an integer of cents. 'DOLLAR_STRING' formats as a dollar string.
statementOfCashFlowConfig
Show TimeRangePickerConfig properties
Controls the granularity of date selection for the cash flow statement.
csvMoneyFormat
'CENTS' | 'DOLLAR_STRING'
Money format for CSV export.
Show ReportsStringOverrides properties
Page title to place in the header.
downloadButton
ProfitAndLossDownloadButtonStringOverrides
Show ProfitAndLossDownloadButtonStringOverrides properties
Button text on download/export button. Defaults to “Download”.
Button text on download/export button, only shows upon download failure. Defaults to “Retry”.
profitAndLoss
ReportsProfitAndLossStringOverrides
Show ReportsProfitAndLossStringOverrides properties
detailedCharts
ProfitAndLossDetailedChartsStringOverrides
Show ProfitAndLossDetailedChartsStringOverrides properties
detailedTableStringOverrides
DetailedTableStringOverrides
Show DetailedTableStringOverrides properties
Table column header for the category column. Defaults to “Category”.
Table column header for the account type column, e.g. Revenue, Expense. Defaults to “Type”.
Value column header showing dollar amounts. Defaults to “Value”.
table
ProfitAndLossTableStringOverrides
Show ProfitAndLossTableStringOverrides properties
Label for the “Gross Profit” row. Defaults to “Gross Profit”.
Label for the “Profit before taxes” row. Defaults to “Profit before taxes”.
Label for the “Net Profit” row. Defaults to “Net Profit”.
balanceSheet
BalanceSheetStringOverrides
Show BalanceSheetStringOverrides properties
balanceSheetTable
BalanceSheetTableStringOverrides
Show BalanceSheetTableStringOverrides properties
Label for the “Type” column, indicating type of account on the balance sheet, e.g. Liability. Defaults to “Type”.
Label for the “Total” column, indicating the total value of the account. Defaults to “Total”.
statementOfCashflow
StatementOfCashFlowStringOverrides
Show StatementOfCashFlowStringOverrides properties
statementOfCashFlowTable
StatementOfCashFlowTableStringOverrides
Show StatementOfCashFlowTableStringOverrides properties
Label for the “Type” column, indicating type of income line statement. Defaults to “Type”.
Label for the “Total” column, indicating the total value of the line item. Defaults to “Total”.