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

# Trial Balance

> Generate and filter the trial balance report by fiscal year, period, and fund in the Finance & Revenue core.

The Trial Balance page is accessible at `/fa/reports/trial-balance` (primary) and also resolves from the legacy path `/fa/trial-balance` which redirects to `/fa/ledger?tab=trial-balance`.

## Overview

The Trial Balance page at `/fa/reports/trial-balance` renders `TrialBalancePage` (no permission gate on this specific route). The alternate path `/fa/trial-balance` redirects to `/fa/ledger?tab=trial-balance`.

The page provides three filter selectors:

* **Fiscal Year** (auto-selects the current year via `useFiscalYears`)
* **Period** (filtered by selected year via `useFiscalPeriods`)
* **Fund** (optional, via `useFunds`)

Trial balance data loads via `useTrialBalance`. Export is available via `ReportExportButtons`. The `TrialBalanceReport` component renders the account-level rows.

Observed row shape fields: `account_id`, `beginning_balance`, `period_debits`, `period_credits`, `ending_balance`, `debit_balance`, `credit_balance`, and related `account` sub-fields.

## Who it's for

Access follows your organization's role and module configuration. ## Before you start

* At least one fiscal year and period must exist.
* An organization must be selected.

## Steps

**Generate a trial balance**

1. Navigate to `/fa/reports/trial-balance`.
2. Select a **Fiscal Year** (auto-populated with the current year).
3. Select a **Period**.
4. Optionally select a **Fund** to scope the report.
5. The report renders automatically.

**Export the report**

1. Use the `ReportExportButtons` to download.

## Key concepts

* **Trial balance row**: Per-account balances with beginning balance, period debits/credits, and ending balance fields.
* **Auto-select**: The page automatically selects the current fiscal year (`is_current` flag) on load.

## Related

<Columns cols={2}>
  <Card title="Finance & Revenue" icon="building-columns" href="/fa/overview">
    Finance & Revenue core overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index" />
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/fa.tsx
  * src/cores/fa/pages/TrialBalancePage.tsx
  * src/cores/fa/hooks/useTrialBalance.ts
  * src/cores/fa/hooks/useFiscalPeriods.ts
  * src/cores/fa/components/TrialBalanceReport.tsx
</Accordion>
