> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reports (Deprecated)

> Combined reports view.

<Info>
  This layout is deprecated. Use the new [Reports](/embedded-components/pages/unified-reports) layout instead.
</Info>

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.

![Reports View](https://github.com/user-attachments/assets/a49308a5-0c08-4cc3-936a-be5f652d8690)

```tsx theme={null}
import { Reports } from '@layerfi/components'

<Reports
  stringOverrides={{
    title: 'My reports title',
    downloadButton: {
      downloadButtonText: 'Export',
    },
  }}
  enabledReports={['profitAndLoss']}
  renderInAppLink={convertLinkingMetadataToLink}
/>
```

### Properties

<ParamField body="showTitle" type="boolean" default="true">
  Controls whether the page title/header is displayed.
</ParamField>

<ParamField body="enabledReports" type="ReportType[]">
  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.
</ParamField>

<ParamField body="renderInAppLink" type="(source: LinkingMetadata) => ReactNode">
  Custom function for rendering in-app navigation links. See the [In-App Linking](/embedded-components/linking) guide for details.
</ParamField>

<ParamField body="comparisonConfig" type="ProfitAndLossCompareConfig">
  Configuration for P\&L tag comparison mode.

  <Expandable title="ProfitAndLossCompareConfig properties">
    <ParamField body="showTimeSeriesComparison" type="boolean" default="true">
      Controls whether time-series comparison options are shown in the compare controls (e.g. group by month, year)
    </ParamField>

    <ParamField body="showTagComparison" type="boolean" default="true">
      Controls whether tag comparison options are shown in the compare controls.
      When `false`, `tagComparisonOptions` and `defaultTagFilter` are not used.
    </ParamField>

    <ParamField body="tagComparisonOptions" type="TagComparisonOption[]">
      Array of tag-based comparison options.

      <Expandable title="TagComparisonOption properties">
        <ParamField body="displayName" type="string">Display name for this comparison option.</ParamField>
        <ParamField body="tagFilterConfig" type="TagViewConfig">Tag filter configuration for this comparison.</ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="defaultTagFilter" type="TagComparisonOption">
      The default tag filter to apply on initial render.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="profitAndLossConfig" type="TimeRangePickerConfig">
  <Expandable title="TimeRangePickerConfig properties">
    <ParamField body="dateSelectionMode" type="'full' | 'month'">
      Controls the granularity of date selection for the P\&L report.
    </ParamField>

    <ParamField body="csvMoneyFormat" type="'CENTS' | 'DOLLAR_STRING'">
      Money format for CSV export. `'CENTS'` formats as an integer of cents. `'DOLLAR_STRING'` formats as a dollar string.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="statementOfCashFlowConfig" type="TimeRangePickerConfig">
  <Expandable title="TimeRangePickerConfig properties">
    <ParamField body="dateSelectionMode" type="'full' | 'month'">
      Controls the granularity of date selection for the cash flow statement.
    </ParamField>

    <ParamField body="csvMoneyFormat" type="'CENTS' | 'DOLLAR_STRING'">
      Money format for CSV export.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="stringOverrides" type="ReportsStringOverrides">
  <Expandable title="ReportsStringOverrides properties">
    <ParamField body="title" type="string">
      Page title to place in the header.
    </ParamField>

    <ParamField body="downloadButton" type="ProfitAndLossDownloadButtonStringOverrides">
      <Expandable title="ProfitAndLossDownloadButtonStringOverrides properties">
        <ParamField body="downloadButtonText" type="string">
          Button text on download/export button. Defaults to "Download".
        </ParamField>

        <ParamField body="retryButtonText" type="string">
          Button text on download/export button, only shows upon download failure. Defaults to "Retry".
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="profitAndLoss" type="ReportsProfitAndLossStringOverrides">
      <Expandable title="ReportsProfitAndLossStringOverrides properties">
        <ParamField body="detailedCharts" type="ProfitAndLossDetailedChartsStringOverrides">
          <Expandable title="ProfitAndLossDetailedChartsStringOverrides properties">
            <ParamField body="detailedTableStringOverrides" type="DetailedTableStringOverrides">
              <Expandable title="DetailedTableStringOverrides properties">
                <ParamField body="categoryColumnHeader" type="string">
                  Table column header for the category column. Defaults to "Category".
                </ParamField>

                <ParamField body="typeColumnHeader" type="string">
                  Table column header for the account type column, e.g. Revenue, Expense. Defaults to "Type".
                </ParamField>

                <ParamField body="valueColumnHeader" type="string">
                  Value column header showing dollar amounts. Defaults to "Value".
                </ParamField>
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="table" type="ProfitAndLossTableStringOverrides">
          <Expandable title="ProfitAndLossTableStringOverrides properties">
            <ParamField body="grossProfitLabel" type="string">
              Label for the "Gross Profit" row. Defaults to "Gross Profit".
            </ParamField>

            <ParamField body="profitBeforeTaxesLabel" type="string">
              Label for the "Profit before taxes" row. Defaults to "Profit before taxes".
            </ParamField>

            <ParamField body="netProfitLabel" type="string">
              Label for the "Net Profit" row. Defaults to "Net Profit".
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="balanceSheet" type="BalanceSheetStringOverrides">
      <Expandable title="BalanceSheetStringOverrides properties">
        <ParamField body="balanceSheetTable" type="BalanceSheetTableStringOverrides">
          <Expandable title="BalanceSheetTableStringOverrides properties">
            <ParamField body="typeColumnHeader" type="string">
              Label for the "Type" column, indicating type of account on the balance sheet, e.g. `Liability`. Defaults to "Type".
            </ParamField>

            <ParamField body="totalColumnHeader" type="string">
              Label for the "Total" column, indicating the total value of the account. Defaults to "Total".
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="statementOfCashflow" type="StatementOfCashFlowStringOverrides">
      <Expandable title="StatementOfCashFlowStringOverrides properties">
        <ParamField body="statementOfCashFlowTable" type="StatementOfCashFlowTableStringOverrides">
          <Expandable title="StatementOfCashFlowTableStringOverrides properties">
            <ParamField body="typeColumnHeader" type="string">
              Label for the "Type" column, indicating type of income line statement. Defaults to "Type".
            </ParamField>

            <ParamField body="totalColumnHeader" type="string">
              Label for the "Total" column, indicating the total value of the line item. Defaults to "Total".
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>
