# XWUITrialBalance

A trial-balance table where each account row shows Opening, Debit, Credit, and an auto-computed Closing balance (opening + debit − credit), with a totals footer and a balance-check note that flags when total debits and credits diverge. Rows can be grouped by category with `groupByCategory`, currency cells use `XWUIDisplayMonetary`, and `onRowClick()` registers per-account handlers.

## Basic Usage

A four-account balance as of 2026-03-31 - Cash and Accounts receivable (debits) against Accounts payable and Owner's equity (credits).

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A USD trial balance with cash, receivables, payables, and equity accounts and an automatic debit/credit balance check.
```

## Grouped Period-End Trial Balance

A full chart of accounts grouped into Assets, Liabilities, Equity, Revenue and Expense that balances cleanly.

```example
file: examples/GroupedByCategory.ts
html: examples/GroupedByCategory.html
title: Grouped Period-End Trial Balance
description: Opening balances plus period activity across five account categories with matching totals.
```

## Out-of-Balance Trial Balance

A pre-adjustment review where a one-sided suspense posting leaves debits above credits and trips the warning note.

```example
file: examples/OutOfBalance.ts
html: examples/OutOfBalance.html
title: Out-of-Balance Trial Balance
description: A compact review grid where an unposted suspense entry breaks the debit/credit balance.
```

```api
```
