# XWUIGeneralLedger

A general-ledger table that lists journal entries as Date, JE #, Description, Reference, Debit, Credit, and a running Balance column auto-computed from a configurable `openingBalance`. It can filter to a single `accountFilter`, group rows by date when `groupByDate` is on, prints period debit/credit totals and an optional closing-balance row, and composes `XWUIDisplayMonetary` for the currency cells. Pass per-row click handlers via `onRowClick()`.

## Basic Usage

A Cash account (opening balance 50,000 USD) with three March 2026 entries - a customer payment, rent, and office supplies.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A USD cash ledger with a 50,000 opening balance and three journal entries, showing the running balance column.
```

## Journal Grouped by Date

A month of mixed journal entries with JE numbers and references, grouped under date sub-headers.

```example
file: examples/GroupedJournal.ts
html: examples/GroupedJournal.html
title: Journal Grouped by Date
description: April postings grouped by date with period totals and a closing balance.
```

## Filtered Account Sub-ledger

A combined posting set narrowed by `accountFilter` to a single AR control account in compact density.

```example
file: examples/AccountSubledger.ts
html: examples/AccountSubledger.html
title: Filtered Account Sub-ledger
description: Two-account postings filtered down to the Accounts Receivable control account.
```

```api
```
