Components
Reports
Combined reports view
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'
<ReportsView
stringOverrides={{
title: 'My reports title',
downloadButton: {
downloadButtonText: 'Export',
},
}}
enabledReports={['profitAndLoss']}
/>
Properties
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.
Show ProfitAndLossConfig properties
Show ProfitAndLossConfig properties
Date picker mode for the Profit and Loss report. Defaults to ‘monthPicker’.
Available values: ['dayRangePicker', 'monthPicker']
.
If more than one value is specified, users will be able to switch between them in the date picker.
Available values: ['dayRangePicker', 'monthPicker']
.
Money format for CSV export. Defaults to “CENTS”, which formats it an integer of cents.
Available values: ['DOLLAR_STRING', 'DOLLAR_NUMBER', 'CENTS_NUMBER']
.
Show StatementOfCashFlowConfig properties
Show StatementOfCashFlowConfig properties
Date picker mode for the Profit and Loss report. Defaults to ‘monthPicker’.
Available values: ['dayRangePicker', 'monthPicker']
.
If more than one value is specified, users will be able to switch between them in the date picker.
Available values: ['dayRangePicker', 'monthPicker']
.
Show ReportsStringOverrides properties
Show ReportsStringOverrides properties
Page title to place in the header.
Show ProfitAndLossStringOverrides properties
Show ProfitAndLossStringOverrides properties
Show ProfitAndLossDetailedChartsStringOverrides properties
Show ProfitAndLossDetailedChartsStringOverrides properties
Show DetailedTableStringOverrides properties
Show DetailedTableStringOverrides properties
Show ProfitAndLossTableStringOverrides properties
Show ProfitAndLossTableStringOverrides properties
Show ProfitAndLossTableStringOverrides properties
Show ProfitAndLossTableStringOverrides properties
Show BalanceSheetTableStringOverrides properties
Show BalanceSheetTableStringOverrides properties
Show StatementOfCashFlowStringOverrides properties
Show StatementOfCashFlowStringOverrides properties